Displaying 3 results from an estimated 3 matches for "classified_control".
2007 Mar 11
5
Mysql::Error #28000Access denied
...tring
t.column :created_at, :timestamp
t.column :updated_at, :timestamp
end
end
def self.down
drop_table :classifieds
end
end</code>
8. rake migrate -- check to see tables have been made in Cocoa
(success!)
9. ruby script/generate controller Classified
10. Update classified_controller.rb file w/
<code>class ClassifiedController < ApplicationController
def list
@classifieds = Classified.find(:all)
end
def show
@classified = Classified.find(params[:id])
end
def new
end
def create
end
def edit
end
def update
end
def delete
end...
2008 May 09
0
NoMethodError in ClassifiedController#update
...ext_field ''classified'', ''email'' %></p>
<%= submit_tag "Save changes" %>
<%= form_tag %>
<%= link_to ''Back'', {:action => ''list'' } %>
Attachments:
http://www.ruby-forum.com/attachment/1883/classified_controller.rb
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@publ...
2011 Nov 02
4
undefined method `updated_at' for #<Classified:0x686c5e4>
HEllo, I have the following problem with rails, I am new in this...is
there anyone who explain to me what´s happens?
Thanks
See below:
NoMethodError in Classified#show
Showing app/views/classified/show.rhtml where line #17 raised:
undefined method `updated_at'' for #<Classified:0x686c5e4>
Extracted source (around line #17):
14:
15: <strong>Date Posted:</strong>