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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 8 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedApr 19, '13 at 3:04p
activeApr 19, '13 at 10:51p
posts8
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Ronald Zhang: 4 posts Yong Gu: 3 posts Tamouse: 1 post

People

Translate

site design / logo © 2021 Grokbase