Hi,

I run into some issues with checkbox inplace_edit. When the box is
checked the following params hash was sent,

<hash>
  <column>aaaa</column>
  <action>bbbb</action>
  <id>151</id>
  <value>true</value>
  <controller>cccc</controller>
</hash>

If it is unchecked, this was sent
<hash>
  <column>aaaa</column>
  <action>bbbb</action>
  <id>151</id>
  <controller>cccc</controller>
</hash>

The current implementation seems to treat them the same. Without
modifying the code of 'update_column', I have the following override,
      @record.send("#{params[:column]}=", (params[:value] == 'true'))
      @record.save
      render :action => 'update_column'

Would be better if it can be changed in the standard implementation.

Please advise.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to