Friday, May 21, 2010

Re: [Rails] Newbie question about views folder

On Fri, May 21, 2010 at 06:45:11PM -0700, FrankMurphy wrote:

> For instance, if I create a sample program 'demo_app' and create a 'users'
> resource with the command:
>
> $ script/generate scaffold User name:string email:string
>
> and then migrate with the command:
>
> $ rake db:migrate
>
> I can see the standard 'Welcome aboard!' page at
> http://<server_addr>/demo_app,

That's a good sign.

> but http://<server_addr>/demo_app/users gives me a 404 Not Found.

Did you generate the new scaffold after your app was already running under
Passenger? If so, and it's environment is set to production, did you modify
the tmp/restart.txt file in your app to signal Passenger to restart the
application?

> but when I build this app locally and view it with Mongrel, I can see
> http://0.0.0.0:3000/users just fine.

That's probably also a good sign. I bet you just need to have Passenger
reload the app as mentioned above. Details can be found at:

http://www.modrails.com/documentation/Users%20guide.html#_redeploying_restarting_the_ruby_on_rails_application

--

Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

What's the definition of a legacy system? One that works!
Errare humanum est, ignoscere caninum.

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate