Hi,
I’m tryin to write into a db, but i get the following error:
ActiveRecord::UnknownAttributeError (unknown attribute: action):
Any hint?
Thx
Hi,
I’m tryin to write into a db, but i get the following error:
ActiveRecord::UnknownAttributeError (unknown attribute: action):
Any hint?
Thx
On Fri, Nov 18, 2011 at 3:27 AM, pololo pololo [email protected]
wrote:
ActiveRecord::UnknownAttributeError (unknown attribute: action):
Any hint?
Look at (or post) the code doing the write; “unknown attribute” seems
pretty unambiguous to me …
Yeah…sorry:
49 def load_data
50 check = Check.find_by_id(params[:id])
51 redirect_to :controller => 'checks', :action=>'list' and
return if !check
52
53 render :json => { :success => true, :data => {
54 :username => check.username,
55 :pass => check.pass,
56 }}
57 end
Thanks
Hassan S. wrote in post #1032504:
On Fri, Nov 18, 2011 at 3:27 AM, pololo pololo [email protected]
wrote:ActiveRecord::UnknownAttributeError (unknown attribute: action):
Any hint?
Look at (or post) the code doing the write; “unknown attribute” seems
pretty unambiguous to me …
On Fri, Nov 18, 2011 at 5:23 AM, pololo pololo [email protected]
wrote:
49 def load_data
50 check = Check.find_by_id(params[:id])
51 redirect_to :controller => ‘checks’, :action=>‘list’ and
return if !check
I don’t see anything writing to the DB there; maybe you should post
the entire stack trace of the error.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs