Hi: i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up to date on each. My models and controllers aren''t displaying all my mysql db fields. When I run script/generate scaffold Planner ... it builds the controller, model, and all the rest. When I go to test the app and new controller, now called planners no content is listed... and all I ever get is the submit button, and ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the form button. I noticed that the Views for the controller planners has all *.html.erb extensions.... .i changed them to .rhtml extensions, but nothing changes. Nothing is visible.... tested in FF, safari.... Any suggestions? Spud --~--~---------~--~----~------------~-------~--~----~ 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 Nov 8, 7:18 pm, SpudNerd <nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi: > > i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up > to date on each. > > My models and controllers aren''t displaying all my mysql db fields. >That''s just the way scaffolding is. I think the old pre 2.x scaffolding is available as a plugin somewhere. Fred> When I run script/generate scaffold Planner ... it builds the > controller, model, and all the rest. > > When I go to test the app and new controller, now called planners no > content is listed... and all I ever get is the submit button, and > ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the > form button. > > I noticed that the Views for the controller planners has all > *.html.erb extensions.... .i changed them to .rhtml extensions, but > nothing changes. > > Nothing is visible.... tested in FF, safari.... > > Any suggestions? > > Spud--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
the more i''m reading here... it looks like scaffold is not built in.... even though going the generate does create the views, just not a complete CRUD. I don''t really care about the CRUD.. just the rapid generation of views. Spud On Sat, Nov 8, 2008 at 11:57 AM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On Nov 8, 7:18 pm, SpudNerd <nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi: > > > > i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up > > to date on each. > > > > My models and controllers aren''t displaying all my mysql db fields. > > > > That''s just the way scaffolding is. I think the old pre 2.x > scaffolding is available as a plugin somewhere. > > Fred > > When I run script/generate scaffold Planner ... it builds the > > controller, model, and all the rest. > > > > When I go to test the app and new controller, now called planners no > > content is listed... and all I ever get is the submit button, and > > ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the > > form button. > > > > I noticed that the Views for the controller planners has all > > *.html.erb extensions.... .i changed them to .rhtml extensions, but > > nothing changes. > > > > Nothing is visible.... tested in FF, safari.... > > > > Any suggestions? > > > > Spud > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did you run rake db:migrate? Rick On Nov 8, 9:18 am, SpudNerd <nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi: > > i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up > to date on each. > > My models and controllers aren''t displaying all my mysql db fields. > > When I run script/generate scaffold Planner ... it builds the > controller, model, and all the rest. > > When I go to test the app and new controller, now called planners no > content is listed... and all I ever get is the submit button, and > ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the > form button. > > I noticed that the Views for the controller planners has all > *.html.erb extensions.... .i changed them to .rhtml extensions, but > nothing changes. > > Nothing is visible.... tested in FF, safari.... > > Any suggestions? > > Spud--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes.. i''ve run rake db:migrate. On Sun, Nov 9, 2008 at 11:48 AM, Rick <Richard.T.Lloyd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Did you run rake db:migrate? > > Rick > > On Nov 8, 9:18 am, SpudNerd <nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi: > > > > i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up > > to date on each. > > > > My models and controllers aren''t displaying all my mysql db fields. > > > > When I run script/generate scaffold Planner ... it builds the > > controller, model, and all the rest. > > > > When I go to test the app and new controller, now called planners no > > content is listed... and all I ever get is the submit button, and > > ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the > > form button. > > > > I noticed that the Views for the controller planners has all > > *.html.erb extensions.... .i changed them to .rhtml extensions, but > > nothing changes. > > > > Nothing is visible.... tested in FF, safari.... > > > > Any suggestions? > > > > Spud > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Scaffolding is still built-in, but it won''t look for existing tables when it builds the views. You''ve got to list out all your column_name:column_type pairs on the call to script/generate. It''s a bummer, but there it is... ________________________________ From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of Chris Ripley Sent: Sunday, November 09, 2008 2:28 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: scaffold not working like i hoped...... Yes.. i''ve run rake db:migrate. On Sun, Nov 9, 2008 at 11:48 AM, Rick <Richard.T.Lloyd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:Richard.T.Lloyd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: Did you run rake db:migrate? Rick On Nov 8, 9:18 am, SpudNerd <nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:nerdc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:> Hi: > > i''ve tried this on three macs (tiger, panther, etc).. and my ROR is up > to date on each. > > My models and controllers aren''t displaying all my mysql db fields. > > When I run script/generate scaffold Planner ... it builds the > controller, model, and all the rest. > > When I go to test the app and new controller, now called planners no > content is listed... and all I ever get is the submit button, and > ''SHOW'', ''EDIT'' links. I get none of the form to work with, just the > form button. > > I noticed that the Views for the controller planners has all > *.html.erb extensions.... .i changed them to .rhtml extensions, but > nothing changes. > > Nothing is visible.... tested in FF, safari.... > > Any suggestions? > > Spud--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try Ryan Bates'' nifty_generators gem. I haven''t tried it yet (on my todo list) but supposedly it can generate controller and views by looking at the attributes of an existing model. See http://github.com/ryanb/nifty-generators/tree/master/rails_generators/nifty_scaffold/USAGE -- Mark. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes... cool. I did a little digging and found out ''how'' to do it now. Truthfully, I like the old way for rapid CRUD of existing data (for internal apps and those not necessarily for primetime); but noobs can''t always get what they want -- usually something easy. I''m definitely a noob. But thanks all for the good advice. Spud On Mon, Nov 10, 2008 at 1:55 PM, Mark Thomas <mark-gkTqyYPWbQbz1n+OaKNE4w@public.gmane.org> wrote:> > Try Ryan Bates'' nifty_generators gem. > > I haven''t tried it yet (on my todo list) but supposedly it can > generate controller and views by looking at the attributes of an > existing model. See > http://github.com/ryanb/nifty-generators/tree/master/rails_generators/nifty_scaffold/USAGE > > -- Mark. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If you gem install scaffold_form_generator you''ll get the part that makes new and edit forms. I extracted this from Rails 1.x and made it work for current Rails cos while I hate scaffolding, I hate making forms by hand even more. Docs are at http://scaffoldform.rubyforge.org/ On Mon, Nov 10, 2008 at 9:30 PM, Chris Ripley <nerdcare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes... cool. I did a little digging and found out ''how'' to do it now. > Truthfully, I like the old way for rapid CRUD of existing data (for internal > apps and those not necessarily for primetime); but noobs can''t always get > what they want -- usually something easy. > > I''m definitely a noob. > > But thanks all for the good advice. > > Spud > > > On Mon, Nov 10, 2008 at 1:55 PM, Mark Thomas <mark-gkTqyYPWbQbz1n+OaKNE4w@public.gmane.org> wrote: > >> >> Try Ryan Bates'' nifty_generators gem. >> >> I haven''t tried it yet (on my todo list) but supposedly it can >> generate controller and views by looking at the attributes of an >> existing model. See >> http://github.com/ryanb/nifty-generators/tree/master/rails_generators/nifty_scaffold/USAGE >> >> -- Mark. >> >> > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---