Or you can give a parameter from new.html.erb or edit.html.erb to _form.html.erb. In the _form.html.erb,check the parameter where it from and do the different things.
在 2012年10月11日星期四UTC+9上午3时29分40秒,roelof写道: > > Hello, > > Imaging I want to use another layout for show and one for edit and new. > Must I then make two different application layouts with 2 css files or can > I do that with 1 layout file and 1 css file ? > > Roelof > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/3rriuvdPOjgJ. For more options, visit https://groups.google.com/groups/opt_out.