Closed timuckun closed 13 years ago
You are the first one reporting this issue. Do you think you can create an example app and provide it as a github repository. That would be great.
Do you use the adapted jquery ujs file for activescaffold?
On Tue, Jul 26, 2011 at 2:09 AM, vhochstein reply@reply.github.com wrote:
Do you use the adapted jquery ujs file for activescaffold?
I don't know what you mean. Do you want me to re-install AS so it can override whatever js file it needs?
Regarding the title of the form you need to implement to_label
on your model
On Tue, Jul 26, 2011 at 9:50 AM, davout reply@reply.github.com wrote:
Regarding the title of the form you need to implement
to_label
on your model
to_label works great.
How about the belongs_to relationships. I think my users will find the UI for the data entry confusing. It would be so much simpler to present them with just a drop down box of acceptable values and skip the two buttons for creation and updating.
I removed the inclusion of rails.js and now the duplicate data entry forms are not appearing.
Is this an acceptable solution? if so we can close the ticket.
Activescaffold needs a special version of the jquery rails.js file. You just have to replace it with active_scaffolds one.
belongs_to issue: just set form_ui attribute for your column to :select
Just installed AS branch rails 3.0. I tried it both as a gem and vendored.
I created a very simple AS controller with a model with one field in it. the list displays fine but when I hit edit two copies of the edit form appear. Same when I hit create.
You have to clear both of them and sometimes one of them will not clear until you reload the page.
also the title of the edit form is being escaped so it shows up like this Update #<Make:0xb6c15b4>
Using HAML but obviously not on these controllers. Rails 3.05 REE