Reply to topic  [ 5 posts ] 
Ruby on Rails help 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5156
Location: /dev/tty0
Reply with quote
Hi all,

I've got a project where I've been given a RoR site and I've got to implement an RSS feed among other things.
The project has a broadcast controller which allows an administrator to send out news to users via different methods (email, twitter, rss, etc).
The database has three tables I'm working with: "broadcasts" containing the content, "broadcasts_feeds" containing a key to the content and what kind of feed it is and "feeds" containing the different kinds of feeds that can be used.

I have successfully added entries to the "broadcasts" table, and linked things together using the "broadcasts_feeds" table (most of the code was there to do this...
Now I need to go about pulling data out of these tables, but I've no idea how to get data from the tables, and then how to pass this to the relevant rss.rxml file (which sits in my views/broadcasts directory)...

I'm hoping that makes sense, we've not been taught how to write any Ruby code, and have only looked at how to create a basic Rails project...

Thanks,
Ben


Wed Dec 09, 2009 11:22 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
I know neither Ruby or Rails, but would the latter parts of this guide be any use?

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Wed Dec 09, 2009 11:30 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
http://oreilly.com/pub/a/ruby/archive/rails.html?page=1

I don't know much/anything about RoR but this seems to contain quite a few different tutorials about accessing data etc...

From here... http://www.digitalmediaminute.com/artic ... -tutorials

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Wed Dec 09, 2009 11:32 am
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 7:56 pm
Posts: 12030
Reply with quote
I was once told that I should get my head down and learn RoR as it's a licence to print money. Apparently.

_________________
www.alexsmall.co.uk

Charlie Brooker wrote:
Windows works for me. But I'd never recommend it to anybody else, ever.


Wed Dec 09, 2009 11:33 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5156
Location: /dev/tty0
Reply with quote
Thanks guys,

I've read some tutorials, but it's all going over my head. I hate this stuff, there is so much tosh you just 'need to know', apparently it's all nice and easy after that.


Wed Dec 09, 2009 11:41 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.