SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Help with rails

  1. #1
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Help with rails

    Hi guys I just got started with rails and I need some help. I set my environment for my application to production so I shouldn't have to restart it if I change code while I am developing it. However, when I generate a controller (say Pages index) and go to /pages/index it still gives me an error. Is there a reason for this? This controller doesn't use a model. Also how do I set my error output to display the info? Also how do I make it so a controller does not have to use a model? Thanx for the help.
    Have a good day.

  2. #2
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind, I got it to work. The environment needed to be set to development with = not ||= and a controller does not automatically need a model.
    Have a good day.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •