Hello, I''m absolutely brand new to Ruby on Rails, and am trying to install it on my host server. My host server (Netfirms) provides limited support for Ruby on Rails, meaning they have the programming script and db bindings pre-installed. We simply copy the files to our directories and configure to our db. http://support.netfirms.com/idx.php/0/649/article/Ruby-on-Rails-Quickstart-Guide.html I am running this with MySQL ------------------------------------- I''ve got all the files copied correct, but am running into trouble on this final step my hosts provides (but won''t offer help with) in their Quick Installation Guide: # Using vi editor OR ee, edit railsapp/app/controllers/ tablename_controller.rb by inserting the following line inside the class declaration: scaffold :tablename (the name of my tablename is "casualties") When I open casualties_controller.rb with my vi editor, it displays: class CasualtiesController < ApplicationController end ----------------------------------- I''m not sure where in that casualties_controller.rb file I am supposed to insert "scaffold :casualties". Thank you, Colleen Robledo --~--~---------~--~----~------------~-------~--~----~ 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 Oct 13, 2007, at 10:35 AM, Colleen Robledo, MLIS wrote:> When I open casualties_controller.rb with my vi editor, it displays: > > class CasualtiesController < ApplicationController > end > > I''m not sure where in that casualties_controller.rb file I am supposed > to insert "scaffold :casualties".class CasualtiesController < ApplicationController scaffold :casualties end -- gw --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Colleen Robledo, MLIS wrote: [...]> I''ve got all the files copied correct, but am running into trouble on > this final step my hosts provides (but won''t offer help with) in their > Quick Installation Guide: > > # Using vi editor OR ee, edit railsapp/app/controllers/ > tablename_controller.rb by inserting the following line inside the > class declaration: scaffold :tablename[...]> I''m not sure where in that casualties_controller.rb file I am supposed > to insert "scaffold :casualties".It sounds like you''re not familiar with Ruby class declarations (or else you would have known where to put that code :) ). If that''s indeed the case, let me suggest that you spend some more time with the Ruby language documentation before you dive into Rails. Rails makes heavy use of Ruby''s object-oriented features, so if you''re going to work with Rails, you shouid probably at least know how to recognize class declarations and suchlike.> > > > Thank you, > Colleen RobledoBest, -- Marnen Laibow-Koser marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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 -~----------~----~----~----~------~----~------~--~---