[Rails] Re: save query string parameter value to database

2011-05-08 Thread farhad mahmoodi
this is correct: http://simple-beach-416.heroku.com/code/restserver?fn=p1&ln=p2 -- 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@googlegroups

[Rails] Re: save query string parameter value to database

2011-05-07 Thread farhad mahmoodi
I generate a controller and call create model method with parameter: def add_item Pers1.create(:fname => params[:fn], :lname => params[:ln]) render :text => "Success!" end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goo

[Rails] save query string parameter value to database

2011-05-07 Thread farhad mahmoodi
hi, I search google for this question but i did not find any solution for that. I want to save parameter value to database. this parameter send by url. for example: http://simple-beach-416.heroku.com/code/restserver?fname=cv I want to save fname value(here "cv") to database. how can i do that?