It depends how you send that value to the controller. If you use a form to submit data, then params[:date8] would work.
If you use a link, then you need to append the value to the link, like http://www.yourdomain.com/controller/method?date8=value -- Yong Gu Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, April 19, 2013 at 11:03 PM, Ronald Zhang wrote: > I currently have javascript in my view and it contains inputs so users > can input values > > <input type = "text" name = "date8" id = "date8" value = "" size =25 > > > I want to be able to access the value in this input once a method in my > controller is called. How can I do this? params[date8] does not work > which makes sense since it isnt a ruby textfield. Anyone have any ideas? > Thanks > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[email protected]). > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

