View unanswered posts | View active topics
It is currently Sat Jul 05, 2025 10:49 pm
|
Page 1 of 1
|
[ 5 posts ] |
|
Author |
Message |
forquare1
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:36 pm Posts: 5156 Location: /dev/tty0
|

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 |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
I know neither Ruby or Rails, but would the latter parts of this guide be any use?
|
Wed Dec 09, 2009 11:30 am |
|
 |
Fogmeister
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 7:35 pm Posts: 6580 Location: Getting there
|
http://oreilly.com/pub/a/ruby/archive/rails.html?page=1I 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
|
Wed Dec 09, 2009 11:32 am |
|
 |
ProfessorF
What's a life?
Joined: Thu Apr 23, 2009 7:56 pm Posts: 12030
|
I was once told that I should get my head down and learn RoR as it's a licence to print money. Apparently.
|
Wed Dec 09, 2009 11:33 am |
|
 |
forquare1
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:36 pm Posts: 5156 Location: /dev/tty0
|
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 |
|
|
|
Page 1 of 1
|
[ 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
|
|