... i miss that no touch to config/routes.rb has been done after
scaffold generation:
r...@webby2066:/var/test/uno# rake routes
(in /var/test/uno)
GET /welcomes(.:format)
{:controller=>"welcomes", :action=>"index"}
welcomes POST /welcomes(.:format)
{:controller=>"welcomes", :action=>"create"}
new_welcome GET /welcomes/new(.:format)
{:controller=>"welcomes", :action=>"new"}
GET /welcomes/:id(.:format)
{:controller=>"welcomes", :action=>"show"}
PUT /welcomes/:id(.:format)
{:controller=>"welcomes", :action=>"update"}
welcome DELETE /welcomes/:id(.:format)
{:controller=>"welcomes", :action=>"destroy"}
edit_welcome GET /welcomes/:id/edit(.:format)
{:controller=>"welcomes", :action=>"edit"}
Thanks :-)
lgs
On Apr 24, 11:16 am, lgs <[email protected]> wrote:
> To have a shot at 3.0.0.beta3, I had just been trying "rails g
> scaffold welcome" , then it come up I get a routing error to css which
> will never display :
>
> Started GET "/welcomes" for 93.34.177.137 at 2010-04-24 08:52:49
> Processing by WelcomesController#index as HTML
> Rendered welcomes/index.html.erb within layouts/application (31.1ms)
> Completed 200 OK in 49ms (Views: 34.7ms | ActiveRecord: 0.9ms)
>
> Started GET "/stylesheets/all.css?1272098671" for 93.34.177.137 at
> 2010-04-24 08:52:50
>
> ActionController::RoutingError (No route matches "/stylesheets/
> all.css"):
>
> ... the same for js path. My app/views/layouts/application.html.erb
> result in <%= stylesheet_link_tag :all %> as aspected ad the source
> page display like that :
>
> <link href="/stylesheets/scaffold.css?1272098671" media="screen"
> rel="stylesheet" type="text/css" />
>
> but my production.log say : No route matches "/stylesheets/all.css"
> Is there something I'm missing with Rails3, or it happening to you
> to ?
>
> My envs :
> r...@webby2066:/var/test/uno# ruby -v
> ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
> r...@webby2066:/var/test/uno# rails -v
> Rails 3.0.0.beta3
>
> Thz in advance
> lgs
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.