Hi I have created a rails app with my own ERD based on the rolling with rails tut. I have c:\ruby and c:\rails\myapp. According to the tut I should have all my generated .rhtml files under ..myapp\views\abc.rhtml etc, but I have none whatsoever. I have years of dev experience, but am sad to say flumoxed at this point. any help will be appreciated. -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/22/06, ed <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi I have created a rails app with my own ERD based on the rolling with > rails tut. > I have c:\ruby and c:\rails\myapp. According to the tut I should have > all my generated .rhtml files under ..myapp\views\abc.rhtml etc, but I > have none whatsoever. > > I have years of dev experience, but am sad to say flumoxed at this > point. > > any help will be appreciated. >hate to ask the obvious (to me at least), but have you generated the views yet? more info would be nice. what steps have you done so far? -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Martin wrote:> On 11/22/06, ed <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> any help will be appreciated. >> > > hate to ask the obvious (to me at least), but have you generated the > views yet? > > more info would be nice. what steps have you done so far? > > -- > > Chris Martin > Web Developer > Open Source & Web Standards Advocate > http://www.chriscodes.com/Hi Chris, I generated the models and controllers and then manually added the scaffold code to the relevant controller. The app works fine now (well once I got used to the plurals way of rails :-) ) and all the relevant views folders are there, just not the .rhtml pages. -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ed wrote:> Chris Martin wrote: >> On 11/22/06, ed <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >>> any help will be appreciated. >>> >> >> hate to ask the obvious (to me at least), but have you generated the >> views yet? >> >> more info would be nice. what steps have you done so far? >> >> -- >> >> Chris Martin >> Web Developer >> Open Source & Web Standards Advocate >> http://www.chriscodes.com/ > > Hi Chris, I generated the models and controllers and then manually added > the scaffold code to the relevant controller. The app works fine now > (well once I got used to the plurals way of rails :-) ) and all the > relevant views folders are there, just not the .rhtml pages.You need to create them yourself, or actually generate the scaffold. if in your controller you have: class Foo < ApplicationController def index @foos = Foo.find(:all) end end Then you need to create a view in: your_app/app/views/foo/index.rhtml Or alternatively, you can run the scaffold generator which writes out the controller code and rhtml templates so you can start messing with them. ruby script/generate scaffold MyModel -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Excellent thanks I''ll give that a bash. -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/22/06, Alex Wayne <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > ed wrote: > > Chris Martin wrote: > >> On 11/22/06, ed <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >>> any help will be appreciated. > >>> > >> > >> hate to ask the obvious (to me at least), but have you generated the > >> views yet? > >> > >> more info would be nice. what steps have you done so far? > >> > >> -- > >> > >> Chris Martin > >> Web Developer > >> Open Source & Web Standards Advocate > >> http://www.chriscodes.com/ > > > > Hi Chris, I generated the models and controllers and then manually added > > the scaffold code to the relevant controller. The app works fine now > > (well once I got used to the plurals way of rails :-) ) and all the > > relevant views folders are there, just not the .rhtml pages. > > You need to create them yourself, or actually generate the scaffold. > > if in your controller you have: > > class Foo < ApplicationController > def index > @foos = Foo.find(:all) > end > end > > Then you need to create a view in: > > your_app/app/views/foo/index.rhtml > > Or alternatively, you can run the scaffold generator which writes out > the controller code and rhtml templates so you can start messing with > them. > > ruby script/generate scaffold MyModel >yep. see this for more info http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---