[Rails] Re: [Newbie] Help with Simple Association Question

2015-02-12 Thread Ankur Sethi
I think you have some of the rough ideas correct. Regarding the speaker and sermon. You only need HABTM between speaker and sermon if a sermon has more than one speaker. Otherwise you can use the regular has_many. But you seem to have a grasp of this so you may realize this. Also for topics yo

[Rails] Re: Newbie Help: Agile Rails book's Hello World

2011-01-20 Thread Barry O'gorman
Wyatt R. wrote in post #949730: >> If using Rails 3.0 then before restarting server with "rails server" >> edit "config/routes.rb", and uncomment the following line: >> >> match ':controller(/:action(/:id(.:format)))' >> >> then restart server > > THIS WAS AMAZING. THANK YOU SO MUCH. > > Why does n

[Rails] Re: Newbie Help: Agile Rails book's Hello World

2010-10-12 Thread Phoenix Rising
To answer a previous question, that being, "why do you have to restart the server after editing the routes", the reason is because the file config/routes.rb is read when the server loads, and its information stored in memory. The application doesn't want to re-load the routes file for every reques

[Rails] Re: Newbie Help: Agile Rails book's Hello World

2010-10-12 Thread Wyatt R.
> If using Rails 3.0 then before restarting server with "rails server" > edit "config/routes.rb", and uncomment the following line: > > match ':controller(/:action(/:id(.:format)))' > > then restart server THIS WAS AMAZING. THANK YOU SO MUCH. Why does no one say anything about this anywhere else?

[Rails] Re: Newbie Help: Agile Rails book's Hello World

2010-10-09 Thread Neel Mangaj
Joe Lewis wrote: > On Dec 31, 7:39�pm, "Conrad Taylor" wrote: > >> Hi Joe, try restarting you server. >> Good luck, >> >> -Conrad > > Well that did the trick. Thank you very much Conrad! Such a simple > thing. So I'm now curious why the restart was required - but no big > matter. It works now an

[Rails] Re: Newbie Help (No Method Error)

2009-05-28 Thread Michael Michael
Perfect... It works now! Thank you for helping me out Philip -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] Re: Newbie Help (No Method Error)

2009-05-28 Thread Philip Hallstrom
On May 28, 2009, at 11:45 AM, Michael Michael wrote: > > I am following the “Agile Web Development with Rails” and I have > decided > to deviate from the book a bit to discover Rails plugins. > > I have set up my app to use “paperclip” to size my photos. I have > managed to get the app working

[Rails] Re: Newbie Help Please! Update 2 Tables with one form

2009-01-29 Thread Sean McGilvray
Thank you for your reply and I will need some more explanation. They are linked through user_id. Thank you, Sean McGilvray & Sarena Byers Director Identity Theft Specialist Pre-Paid Legal Service's, Inc. NYSE:PPD Phone: 760-486-1019 smcgilv...@prepaidlegal.com http://www.transferhome.net On T

[Rails] Re: Newbie Help Please! Update 2 Tables with one form

2009-01-29 Thread Julian Leviston
That makes more sense. It's much better when people take time to form their questions. I have one question tho - how will you link the user to their account? Anyway, in the destination action of The form - its target - you need to specify two "new" methods rather than just one. Let me know i

[Rails] Re: Newbie Help Please! Update 2 Tables with one form

2009-01-29 Thread Sean Mcgilvray
Julian Leviston wrote: > Your question doesn't make enough sense. What are the exact models or > table names that you want to update? > > Sent from my iPhone > > On 30/01/2009, at 4:01 AM, Sean Mcgilvray > I want to only have the user part of the form filled out. When submitted have it upda

[Rails] Re: Newbie Help Please! Update 2 Tables with one form

2009-01-29 Thread Julian Leviston
Your question doesn't make enough sense. What are the exact models or table names that you want to update? Sent from my iPhone On 30/01/2009, at 4:01 AM, Sean Mcgilvray wrote: > > I have a form: > > <% form_tag :action => 'create' do %> > <%= hidden_field_tag 'plan', params[:plan] %> > >

[Rails] Re: newbie help

2008-10-12 Thread Ing. Mario Navarra
Hi! (Ciao), I do something like what you want with ajax components. I've used an observer... now i've not the code, but if you write to me I can send it bye, Mario On 12 Ott, 17:02, Stefano Bonomi <[EMAIL PROTECTED]> wrote: > Hi, > > I have a view, where I need to display some text and then afte

[Rails] Re: newbie help

2008-10-12 Thread Stefano Bonomi
Hassan Schroeder wrote: > On Sun, Oct 12, 2008 at 8:02 AM, Stefano Bonomi > <[EMAIL PROTECTED]> wrote: > Since this is client-side behavior, it has nothing to do with PHP, RoR > or any other platform. You can do this using either JavaScript or a > META tag. > > For the latter, put something like

[Rails] Re: newbie help

2008-10-12 Thread Hassan Schroeder
On Sun, Oct 12, 2008 at 8:02 AM, Stefano Bonomi <[EMAIL PROTECTED]> wrote: > I have a view, where I need to display some text and then after 5 > seconds, redirect to an action automatically (sending one parameter > too). Since this is client-side behavior, it has nothing to do with PHP, RoR or a