From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- lib/generators/nifty/scaffold/templates/actions/edit.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 lib/generators/nifty/scaffold/templates/actions/edit.rb (limited to 'lib/generators/nifty/scaffold/templates/actions/edit.rb') diff --git a/lib/generators/nifty/scaffold/templates/actions/edit.rb b/lib/generators/nifty/scaffold/templates/actions/edit.rb new file mode 100644 index 0000000..907e928 --- /dev/null +++ b/lib/generators/nifty/scaffold/templates/actions/edit.rb @@ -0,0 +1,3 @@ + def edit + @<%= instance_name %> = <%= class_name %>.find(params[:id]) + end -- cgit v1.2.3