pauladaniel / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Can't use "form for" with calendar #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a normal rails view
2. Use form_for rather than just form_tag
3. When you try to use f.calendar_date_select an error is raised

What is the expected output? What do you see instead?
The expected output would be a properly named calendar control

What version of the product are you using? On what operating system?
Latest, OSX 10.5

Please provide any additional information below.

The preferred form syntax is to use form, and form_remote for to generate
the helpers...would love to use this control! 

Original issue reported on code.google.com by mjlar...@gmail.com on 25 Jun 2008 at 6:31

GoogleCodeExporter commented 8 years ago
This is known to be working but may be broken in rails 2.1

What version of rails?

Original comment by timchar...@gmail.com on 25 Jun 2008 at 6:34

GoogleCodeExporter commented 8 years ago
Ah, nevermind...I didn't realize you had the regular calendar_date_select, I was
using calendar_date_select_tag because that's what all the examples used, but I 
dug
through the plugin code and finally saw it.  Sorry, works great, thanks!

Original comment by mjlar...@gmail.com on 25 Jun 2008 at 6:39

GoogleCodeExporter commented 8 years ago
some of the examples use calendar_date_select.  How could it be made more 
obvious?  Lots of people run into 
this issue

Original comment by timchar...@gmail.com on 25 Jun 2008 at 6:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Usually the form helpers are used the other way around...using the form builder
version rather than the _tag generator only, and I assumed that the _tag 
version was
the only one available, (I see now the tab labeled "Form Builder Integration") 
since
at first glance that's the only form used...even if I were to click on the popup
version (which is what I'm using) all the examples use the _tag form.

My only suggestion is to add a tab (maybe called "Overview" or "General Usage" 
to
your demo that gives an example of all the different uses...I know you give 
several
different examples, but unless the dev knows that they are looking for "Form 
Builder
Integration", then all the other examples use calendar_date_select_tag and they 
might
think (as I did at first glance) that that's supposed to be used for everything 
or
that the form builder part isn't available.

Thanks so much, and sorry for the hassle, I'll make sure to read through all the
demos from now on!

So, I'd just have 1 overview tab that uses calendar_date_select_tag,
calendar_date_select, and
f.calendar_date_select, which a couple of different options (embedded, popup).

Original comment by mjlar...@gmail.com on 25 Jun 2008 at 7:34

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 30 Nov 2008 at 8:29