Please not. 

You can either append the value to the url or put the value inside the form.

You can check whether the date1 was posted to the server. Use web inspector to 
see the posted data. If the date1 was not even included in the posted data, 
then you need to check your html and javascript. Or if the date1 was included 
but it is blank, then you need to figure out why it is blank. 

-- 
Yong Gu
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Saturday, April 20, 2013 at 12:16 AM, Ronald Zhang wrote:

> Is it possible to pass in the value of date1 into the method when the 
> button is pressed? That way I wont have to find a way to reference 
> everything in the controller. If so I can I change my button_to to 
> reflect that?
> 
> <div>
> <%= button_to "Create", action:"create"%>
> </div>
> 
> -- 
> 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.


Reply via email to