Displaying 3 results from an estimated 3 matches for "restaurantcontrol".
2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should
just work?
I have a simple table and I created a model and a controller:
ruby script/generate controller Restaurant
ruby script/generate model Restaurant
I edited the controller to this:
class RestaurantController < ApplicationController
scaffold :Restaurant
end
I run it and:
http://0.0.0.0:3000/Restaurant works fine, gives me a list of
restaurants.
If I click on edit though I get this:
Showing
usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/scaffolds/edit.rhtml...
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should
just work?
I have a simple table and I created a model and a controller:
ruby script/generate controller Restaurant
ruby script/generate model Restaurant
I edited the controller to this:
class RestaurantController < ApplicationController
scaffold :Restaurant
end
I run it and:
http://0.0.0.0:3000/Restaurant works fine, gives me a list of
restaurants.
If I click on edit though I get this:
Showing
usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/scaffolds/edit.rht...
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...ur database column "open" into something like "is_open"
> >
> > A list of Reserved Words is findable here:
> > http://wiki.rubyonrails.com/rails/pages/ReservedWords
> >
> > On 5/4/06, Donald Brady <dbrady010@mac.com> wrote:
> >> class RestaurantController < ApplicationController
> >> Showing
> >> "update#{@scaffold_suffix}") %>
> >> usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/scaffolds/new.rhtml
> >> 5:
> >> `email` VARCHAR(100) DEFAULT ''...