Hi,
This is my first effort with RoR using the onlamp.com tutorial
(http://www.onlamp.com/lpt/a/5546). I want to simply replace the example
using my own table called “public”.
My controller looks like:
class GlycanPublicController < ApplicationController
scaffold :public
def list
@data = public.find_all
end
end
and the views file list.rhtml:
Listing ofdataList
ID |
Name |
<%= public.id %> | <%= public.name %> |
<%= link_to "Create New Entry", :action => "new" %>
The error generated is:
undefined local variable or method `public’ for
#PublicController:0x37f9dbc