afeld / jeditable-rails

a gem to add in-place-editable fields to your Rails project
MIT License
34 stars 18 forks source link

Allow custom dataname #5

Closed all4miller closed 13 years ago

all4miller commented 13 years ago

Hi

I needed to be able to override the data-name so I can have multiple editable fields for the same attribute but different records.

Hope it make sense and sorry about the extra row I use gedit and for some reason it likes that

Cheers

afeld commented 13 years ago

Hi angus- Thanks for raising that issue, but in that case wouldn't it be more consistent with Rails form helpers to keep the name attribute intact and just add a record id to the span? See what I mean here. Let me know if that solves your problem.

-Aidan

all4miller commented 13 years ago

Yes looks better

afeld commented 13 years ago

Allrighty, gem v0.1.1 includes the fix. More feedback is always welcome!