Displaying 2 results from an estimated 2 matches for "_nav".
2009 Aug 13
5
First hit on app takes a long time
...t;"MainPage"}
Rendering template within layouts/application
Rendering wiki_pages/show
User Columns (1.3ms) SHOW FIELDS FROM `users`
User Load (0.4ms) SELECT * FROM `users` WHERE (`users`.`id` = 4)
LIMIT 1
Repopulating the stop words
Rendered common/_header (16.7ms)
Rendered common/_nav (4.4ms)
Rendered common/_search (2.4ms)
Rendered common/_footer (0.6ms)
Completed in 2422ms (View: 134, DB: 2) | 200 OK [http://myserver.com/
wiki_pages/MainPage]
Processing WikiPagesController#show (for 98.218.223.189 at 2009-08-12
20:17:04) [GET]
Parameters: {"id"=>"MainPage...
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
...fold generator to match
the style and design I wanted to use by creating custom templates in /
lib/templates/erb/scaffold I found that I wanted to add additional
files.
I can now do something like the following:
$ rails generate scaffold FitType key:string name:string
description:text --add-views=_nav --skip-views=new ...
invoke erb
create app/views/fit_types
create app/views/fit_types/index.html.erb
create app/views/fit_types/edit.html.erb
create app/views/fit_types/show.html.erb
create app/views/fit_types/_form.html.erb
create app/views/fit_types...