I apologize if I've just missed something completely obvious. My app
uses optimistic locking via the :lock_version attribute. I have been
including this in all my forms as <%= f.input :lock_version %> which
obviously displays as an integer field. I know that I can just
append :as => :hidden but I'd like to make this DRY and set up a
custom input mapping.
In my simple_form.rb initializer I have added the line:
config.input_mappings = { /lock_version/ => :hidden }
This is not working. I have tested it with different fields and
different input types and none of it appears to work. Did I miss
something totally obvious?
On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> wrote: > I apologize if I've just missed something completely obvious. My app > uses optimistic locking via the :lock_version attribute. I have been > including this in all my forms as <%= f.input :lock_version %> which > obviously displays as an integer field. I know that I can just > append :as => :hidden but I'd like to make this DRY and set up a > custom input mapping.
> In my simple_form.rb initializer I have added the line: > config.input_mappings = { /lock_version/ => :hidden }
> This is not working. I have tested it with different fields and > different input types and none of it appears to work. Did I miss > something totally obvious?
Also, this feature is only available in SimpleForm 1.3 and master, which version are you using? If you are using an older version, I'd recommend you to use from master instead of 1.3, there should be a new release soon.
On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França <rafael....@gmail.com
> On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> wrote:
>> I apologize if I've just missed something completely obvious. My app >> uses optimistic locking via the :lock_version attribute. I have been >> including this in all my forms as <%= f.input :lock_version %> which >> obviously displays as an integer field. I know that I can just >> append :as => :hidden but I'd like to make this DRY and set up a >> custom input mapping.
>> In my simple_form.rb initializer I have added the line: >> config.input_mappings = { /lock_version/ => :hidden }
>> This is not working. I have tested it with different fields and >> different input types and none of it appears to work. Did I miss >> something totally obvious?
The server has been restarted a few times since I added the mappings
but just to be sure restarted it again with no luck. I was using
SimpleForm 1.3 but switched to master per your suggestion... still no
luck.
Incase I am really messing this up, here is my form:
<%= simple_form_for @project do |f| %>
...
<%= f.input :lock_version %>
<%= f.button :submit %>
<% end %>
The attribute is called lock_version and my config line is as above.
Thank you for your assistance... I know an easy fix would be to use
the :as => :hidden to each instance but the custom mapping would be so
much cleaner.
<carlosantoniodasi...@gmail.com> wrote:
> Also, this feature is only available in SimpleForm 1.3 and master, which
> version are you using?
> If you are using an older version, I'd recommend you to use from master
> instead of 1.3, there should be a new release soon.
> On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França <rafael....@gmail.com
> > wrote:
> > Sorry but, did you restart the server?
> > I tried to reproduce it, but I did not succeed. I used this test:
> > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> wrote:
> >> I apologize if I've just missed something completely obvious. My app
> >> uses optimistic locking via the :lock_version attribute. I have been
> >> including this in all my forms as <%= f.input :lock_version %> which
> >> obviously displays as an integer field. I know that I can just
> >> append :as => :hidden but I'd like to make this DRY and set up a
> >> custom input mapping.
> >> In my simple_form.rb initializer I have added the line:
> >> config.input_mappings = { /lock_version/ => :hidden }
> >> This is not working. I have tested it with different fields and
> >> different input types and none of it appears to work. Did I miss
> >> something totally obvious?
On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote: > The server has been restarted a few times since I added the mappings > but just to be sure restarted it again with no luck. I was using > SimpleForm 1.3 but switched to master per your suggestion... still no > luck.
> Incase I am really messing this up, here is my form: > <%= simple_form_for @project do |f| %> > ... > <%= f.input :lock_version %> > <%= f.button :submit %> > <% end %>
> The attribute is called lock_version and my config line is as above. > Thank you for your assistance... I know an easy fix would be to use > the :as => :hidden to each instance but the custom mapping would be so > much cleaner.
> -Reid
> On Feb 2, 10:04 am, Carlos Antonio da Silva > <carlosantoniodasi...@gmail.com> wrote: > > Also, this feature is only available in SimpleForm 1.3 and master, which > > version are you using? > > If you are using an older version, I'd recommend you to use from master > > instead of 1.3, there should be a new release soon.
> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < > rafael....@gmail.com
> > > wrote: > > > Sorry but, did you restart the server?
> > > I tried to reproduce it, but I did not succeed. I used this test:
> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> wrote:
> > >> I apologize if I've just missed something completely obvious. My app > > >> uses optimistic locking via the :lock_version attribute. I have been > > >> including this in all my forms as <%= f.input :lock_version %> which > > >> obviously displays as an integer field. I know that I can just > > >> append :as => :hidden but I'd like to make this DRY and set up a > > >> custom input mapping.
> > >> In my simple_form.rb initializer I have added the line: > > >> config.input_mappings = { /lock_version/ => :hidden }
> > >> This is not working. I have tested it with different fields and > > >> different input types and none of it appears to work. Did I miss > > >> something totally obvious?
> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
>> The server has been restarted a few times since I added the mappings >> but just to be sure restarted it again with no luck. I was using >> SimpleForm 1.3 but switched to master per your suggestion... still no >> luck.
>> Incase I am really messing this up, here is my form: >> <%= simple_form_for @project do |f| %> >> ... >> <%= f.input :lock_version %> >> <%= f.button :submit %> >> <% end %>
>> The attribute is called lock_version and my config line is as above. >> Thank you for your assistance... I know an easy fix would be to use >> the :as => :hidden to each instance but the custom mapping would be so >> much cleaner.
>> -Reid
>> On Feb 2, 10:04 am, Carlos Antonio da Silva >> <carlosantoniodasi...@gmail.com> wrote: >> > Also, this feature is only available in SimpleForm 1.3 and master, which >> > version are you using? >> > If you are using an older version, I'd recommend you to use from master >> > instead of 1.3, there should be a new release soon.
>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < >> rafael....@gmail.com
>> > > wrote: >> > > Sorry but, did you restart the server?
>> > > I tried to reproduce it, but I did not succeed. I used this test:
>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> >> wrote:
>> > >> I apologize if I've just missed something completely obvious. My app >> > >> uses optimistic locking via the :lock_version attribute. I have been >> > >> including this in all my forms as <%= f.input :lock_version %> which >> > >> obviously displays as an integer field. I know that I can just >> > >> append :as => :hidden but I'd like to make this DRY and set up a >> > >> custom input mapping.
>> > >> In my simple_form.rb initializer I have added the line: >> > >> config.input_mappings = { /lock_version/ => :hidden }
>> > >> This is not working. I have tested it with different fields and >> > >> different input types and none of it appears to work. Did I miss >> > >> something totally obvious?
>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
>>> The server has been restarted a few times since I added the mappings >>> but just to be sure restarted it again with no luck. I was using >>> SimpleForm 1.3 but switched to master per your suggestion... still no >>> luck.
>>> Incase I am really messing this up, here is my form: >>> <%= simple_form_for @project do |f| %> >>> ... >>> <%= f.input :lock_version %> >>> <%= f.button :submit %> >>> <% end %>
>>> The attribute is called lock_version and my config line is as above. >>> Thank you for your assistance... I know an easy fix would be to use >>> the :as => :hidden to each instance but the custom mapping would be so >>> much cleaner.
>>> -Reid
>>> On Feb 2, 10:04 am, Carlos Antonio da Silva >>> <carlosantoniodasi...@gmail.com> wrote: >>> > Also, this feature is only available in SimpleForm 1.3 and master, >>> which >>> > version are you using? >>> > If you are using an older version, I'd recommend you to use from master >>> > instead of 1.3, there should be a new release soon.
>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < >>> rafael....@gmail.com
>>> > > wrote: >>> > > Sorry but, did you restart the server?
>>> > > I tried to reproduce it, but I did not succeed. I used this test:
>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> >>> wrote:
>>> > >> I apologize if I've just missed something completely obvious. My app >>> > >> uses optimistic locking via the :lock_version attribute. I have been >>> > >> including this in all my forms as <%= f.input :lock_version %> which >>> > >> obviously displays as an integer field. I know that I can just >>> > >> append :as => :hidden but I'd like to make this DRY and set up a >>> > >> custom input mapping.
>>> > >> In my simple_form.rb initializer I have added the line: >>> > >> config.input_mappings = { /lock_version/ => :hidden }
>>> > >> This is not working. I have tested it with different fields and >>> > >> different input types and none of it appears to work. Did I miss >>> > >> something totally obvious?
>>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
>>>> The server has been restarted a few times since I added the mappings >>>> but just to be sure restarted it again with no luck. I was using >>>> SimpleForm 1.3 but switched to master per your suggestion... still no >>>> luck.
>>>> Incase I am really messing this up, here is my form: >>>> <%= simple_form_for @project do |f| %> >>>> ... >>>> <%= f.input :lock_version %> >>>> <%= f.button :submit %> >>>> <% end %>
>>>> The attribute is called lock_version and my config line is as above. >>>> Thank you for your assistance... I know an easy fix would be to use >>>> the :as => :hidden to each instance but the custom mapping would be so >>>> much cleaner.
>>>> -Reid
>>>> On Feb 2, 10:04 am, Carlos Antonio da Silva >>>> <carlosantoniodasi...@gmail.com> wrote: >>>> > Also, this feature is only available in SimpleForm 1.3 and master, >>>> which >>>> > version are you using? >>>> > If you are using an older version, I'd recommend you to use from >>>> master >>>> > instead of 1.3, there should be a new release soon.
>>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < >>>> rafael....@gmail.com
>>>> > > wrote: >>>> > > Sorry but, did you restart the server?
>>>> > > I tried to reproduce it, but I did not succeed. I used this test:
>>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> >>>> wrote:
>>>> > >> I apologize if I've just missed something completely obvious. My >>>> app >>>> > >> uses optimistic locking via the :lock_version attribute. I have >>>> been >>>> > >> including this in all my forms as <%= f.input :lock_version %> >>>> which >>>> > >> obviously displays as an integer field. I know that I can just >>>> > >> append :as => :hidden but I'd like to make this DRY and set up a >>>> > >> custom input mapping.
>>>> > >> In my simple_form.rb initializer I have added the line: >>>> > >> config.input_mappings = { /lock_version/ => :hidden }
>>>> > >> This is not working. I have tested it with different fields and >>>> > >> different input types and none of it appears to work. Did I miss >>>> > >> something totally obvious?
carlosantoniodasi...@gmail.com> wrote: > Sounds good. > Just a question for discussion: do you think custom types should have high > or lower precedence over the default input types?
> On Thu, Feb 3, 2011 at 2:12 PM, Rafael Mendonça França < > rafael....@gmail.com> wrote:
>> This pull request fixes the bug. Please test the commit and report back if >> it works.
>>>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
>>>>> The server has been restarted a few times since I added the mappings >>>>> but just to be sure restarted it again with no luck. I was using >>>>> SimpleForm 1.3 but switched to master per your suggestion... still no >>>>> luck.
>>>>> Incase I am really messing this up, here is my form: >>>>> <%= simple_form_for @project do |f| %> >>>>> ... >>>>> <%= f.input :lock_version %> >>>>> <%= f.button :submit %> >>>>> <% end %>
>>>>> The attribute is called lock_version and my config line is as above. >>>>> Thank you for your assistance... I know an easy fix would be to use >>>>> the :as => :hidden to each instance but the custom mapping would be so >>>>> much cleaner.
>>>>> -Reid
>>>>> On Feb 2, 10:04 am, Carlos Antonio da Silva >>>>> <carlosantoniodasi...@gmail.com> wrote: >>>>> > Also, this feature is only available in SimpleForm 1.3 and master, >>>>> which >>>>> > version are you using? >>>>> > If you are using an older version, I'd recommend you to use from >>>>> master >>>>> > instead of 1.3, there should be a new release soon.
>>>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < >>>>> rafael....@gmail.com
>>>>> > > wrote: >>>>> > > Sorry but, did you restart the server?
>>>>> > > I tried to reproduce it, but I did not succeed. I used this test:
>>>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> >>>>> wrote:
>>>>> > >> I apologize if I've just missed something completely obvious. My >>>>> app >>>>> > >> uses optimistic locking via the :lock_version attribute. I have >>>>> been >>>>> > >> including this in all my forms as <%= f.input :lock_version %> >>>>> which >>>>> > >> obviously displays as an integer field. I know that I can just >>>>> > >> append :as => :hidden but I'd like to make this DRY and set up a >>>>> > >> custom input mapping.
>>>>> > >> In my simple_form.rb initializer I have added the line: >>>>> > >> config.input_mappings = { /lock_version/ => :hidden }
>>>>> > >> This is not working. I have tested it with different fields and >>>>> > >> different input types and none of it appears to work. Did I miss >>>>> > >> something totally obvious?
I agree they should have higher precedence, hopefully it won't lead to any sort of confusion. Just wanted to put that under discussion =D. I'll apply your patch later, just waiting Reid feedback. Thanks mate.
On Thu, Feb 3, 2011 at 2:33 PM, Rafael Mendonça França <rafael....@gmail.com
>>>>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
>>>>>> The server has been restarted a few times since I added the mappings >>>>>> but just to be sure restarted it again with no luck. I was using >>>>>> SimpleForm 1.3 but switched to master per your suggestion... still no >>>>>> luck.
>>>>>> Incase I am really messing this up, here is my form: >>>>>> <%= simple_form_for @project do |f| %> >>>>>> ... >>>>>> <%= f.input :lock_version %> >>>>>> <%= f.button :submit %> >>>>>> <% end %>
>>>>>> The attribute is called lock_version and my config line is as above. >>>>>> Thank you for your assistance... I know an easy fix would be to use >>>>>> the :as => :hidden to each instance but the custom mapping would be so >>>>>> much cleaner.
>>>>>> -Reid
>>>>>> On Feb 2, 10:04 am, Carlos Antonio da Silva >>>>>> <carlosantoniodasi...@gmail.com> wrote: >>>>>> > Also, this feature is only available in SimpleForm 1.3 and master, >>>>>> which >>>>>> > version are you using? >>>>>> > If you are using an older version, I'd recommend you to use from >>>>>> master >>>>>> > instead of 1.3, there should be a new release soon.
>>>>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < >>>>>> rafael....@gmail.com
>>>>>> > > wrote: >>>>>> > > Sorry but, did you restart the server?
>>>>>> > > I tried to reproduce it, but I did not succeed. I used this test:
>>>>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com> >>>>>> wrote:
>>>>>> > >> I apologize if I've just missed something completely obvious. My >>>>>> app >>>>>> > >> uses optimistic locking via the :lock_version attribute. I have >>>>>> been >>>>>> > >> including this in all my forms as <%= f.input :lock_version %> >>>>>> which >>>>>> > >> obviously displays as an integer field. I know that I can just >>>>>> > >> append :as => :hidden but I'd like to make this DRY and set up a >>>>>> > >> custom input mapping.
>>>>>> > >> In my simple_form.rb initializer I have added the line: >>>>>> > >> config.input_mappings = { /lock_version/ => :hidden }
>>>>>> > >> This is not working. I have tested it with different fields and >>>>>> > >> different input types and none of it appears to work. Did I miss >>>>>> > >> something totally obvious?
>>>>>> > >> Thanks for your help.
>>>>>> > -- >>>>>> > At. >>>>>> > Carlos A. da Silva
<carlosantoniodasi...@gmail.com> wrote:
> I agree they should have higher precedence, hopefully it won't lead to any
> sort of confusion. Just wanted to put that under discussion =D.
> I'll apply your patch later, just waiting Reid feedback. Thanks mate.
> On Thu, Feb 3, 2011 at 2:33 PM, Rafael Mendonça França <rafael....@gmail.com
> > wrote:
> > I think that custom types should have high precedence.
> > If I'm setting a custom mapping for a attribute I really need it to use my
> > custom mapping.
> > This was the case that I saw more people using. Like the Reid.
> > On Thu, Feb 3, 2011 at 1:26 PM, Carlos Antonio da Silva <
> > carlosantoniodasi...@gmail.com> wrote:
> >> Sounds good.
> >> Just a question for discussion: do you think custom types should have high
> >> or lower precedence over the default input types?
> >> On Thu, Feb 3, 2011 at 2:12 PM, Rafael Mendonça França <
> >> rafael....@gmail.com> wrote:
> >>> This pull request fixes the bug. Please test the commit and report back
> >>> if it works.
> >>>>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> wrote:
> >>>>>> The server has been restarted a few times since I added the mappings
> >>>>>> but just to be sure restarted it again with no luck. I was using
> >>>>>> SimpleForm 1.3 but switched to master per your suggestion... still no
> >>>>>> luck.
> >>>>>> Incase I am really messing this up, here is my form:
> >>>>>> <%= simple_form_for @project do |f| %>
> >>>>>> ...
> >>>>>> <%= f.input :lock_version %>
> >>>>>> <%= f.button :submit %>
> >>>>>> <% end %>
> >>>>>> The attribute is called lock_version and my config line is as above.
> >>>>>> Thank you for your assistance... I know an easy fix would be to use
> >>>>>> the :as => :hidden to each instance but the custom mapping would be so
> >>>>>> much cleaner.
> >>>>>> -Reid
> >>>>>> On Feb 2, 10:04 am, Carlos Antonio da Silva
> >>>>>> <carlosantoniodasi...@gmail.com> wrote:
> >>>>>> > Also, this feature is only available in SimpleForm 1.3 and master,
> >>>>>> which
> >>>>>> > version are you using?
> >>>>>> > If you are using an older version, I'd recommend you to use from
> >>>>>> master
> >>>>>> > instead of 1.3, there should be a new release soon.
> >>>>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França <
> >>>>>> rafael....@gmail.com
> >>>>>> > > wrote:
> >>>>>> > > Sorry but, did you restart the server?
> >>>>>> > > I tried to reproduce it, but I did not succeed. I used this test:
> >>>>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid <reid.gille...@gmail.com>
> >>>>>> wrote:
> >>>>>> > >> I apologize if I've just missed something completely obvious. My
> >>>>>> app
> >>>>>> > >> uses optimistic locking via the :lock_version attribute. I have
> >>>>>> been
> >>>>>> > >> including this in all my forms as <%= f.input :lock_version %>
> >>>>>> which
> >>>>>> > >> obviously displays as an integer field. I know that I can just
> >>>>>> > >> append :as => :hidden but I'd like to make this DRY and set up a
> >>>>>> > >> custom input mapping.
> >>>>>> > >> In my simple_form.rb initializer I have added the line:
> >>>>>> > >> config.input_mappings = { /lock_version/ => :hidden }
> >>>>>> > >> This is not working. I have tested it with different fields and
> >>>>>> > >> different input types and none of it appears to work. Did I miss
> >>>>>> > >> something totally obvious?
> >>>>>> > >> Thanks for your help.
> >>>>>> > --
> >>>>>> > At.
> >>>>>> > Carlos A. da Silva
On Thu, Feb 3, 2011 at 11:14 PM, Reid <reid.gille...@gmail.com> wrote: > Works perfectly! Thank you both so much.
> On Feb 3, 12:22 pm, Carlos Antonio da Silva > <carlosantoniodasi...@gmail.com> wrote: > > I agree they should have higher precedence, hopefully it won't lead to > any > > sort of confusion. Just wanted to put that under discussion =D. > > I'll apply your patch later, just waiting Reid feedback. Thanks mate.
> > On Thu, Feb 3, 2011 at 2:33 PM, Rafael Mendonça França < > rafael....@gmail.com
> > > wrote: > > > I think that custom types should have high precedence.
> > > If I'm setting a custom mapping for a attribute I really need it to use > my > > > custom mapping.
> > > This was the case that I saw more people using. Like the Reid.
> > > On Thu, Feb 3, 2011 at 1:26 PM, Carlos Antonio da Silva < > > > carlosantoniodasi...@gmail.com> wrote:
> > >> Sounds good. > > >> Just a question for discussion: do you think custom types should have > high > > >> or lower precedence over the default input types?
> > >> On Thu, Feb 3, 2011 at 2:12 PM, Rafael Mendonça França < > > >> rafael....@gmail.com> wrote:
> > >>> This pull request fixes the bug. Please test the commit and report > back > > >>> if it works.
> > >>>>> On Thu, Feb 3, 2011 at 1:59 AM, Reid <reid.gille...@gmail.com> > wrote:
> > >>>>>> The server has been restarted a few times since I added the > mappings > > >>>>>> but just to be sure restarted it again with no luck. I was using > > >>>>>> SimpleForm 1.3 but switched to master per your suggestion... still > no > > >>>>>> luck.
> > >>>>>> Incase I am really messing this up, here is my form: > > >>>>>> <%= simple_form_for @project do |f| %> > > >>>>>> ... > > >>>>>> <%= f.input :lock_version %> > > >>>>>> <%= f.button :submit %> > > >>>>>> <% end %>
> > >>>>>> The attribute is called lock_version and my config line is as > above. > > >>>>>> Thank you for your assistance... I know an easy fix would be to > use > > >>>>>> the :as => :hidden to each instance but the custom mapping would > be so > > >>>>>> much cleaner.
> > >>>>>> -Reid
> > >>>>>> On Feb 2, 10:04 am, Carlos Antonio da Silva > > >>>>>> <carlosantoniodasi...@gmail.com> wrote: > > >>>>>> > Also, this feature is only available in SimpleForm 1.3 and > master, > > >>>>>> which > > >>>>>> > version are you using? > > >>>>>> > If you are using an older version, I'd recommend you to use from > > >>>>>> master > > >>>>>> > instead of 1.3, there should be a new release soon.
> > >>>>>> > On Wed, Feb 2, 2011 at 1:59 PM, Rafael Mendonça França < > > >>>>>> rafael....@gmail.com
> > >>>>>> > > wrote: > > >>>>>> > > Sorry but, did you restart the server?
> > >>>>>> > > I tried to reproduce it, but I did not succeed. I used this > test:
> > >>>>>> > > On Wed, Feb 2, 2011 at 12:38 PM, Reid < > reid.gille...@gmail.com> > > >>>>>> wrote:
> > >>>>>> > >> I apologize if I've just missed something completely obvious. > My > > >>>>>> app > > >>>>>> > >> uses optimistic locking via the :lock_version attribute. I > have > > >>>>>> been > > >>>>>> > >> including this in all my forms as <%= f.input :lock_version > %> > > >>>>>> which > > >>>>>> > >> obviously displays as an integer field. I know that I can > just > > >>>>>> > >> append :as => :hidden but I'd like to make this DRY and set > up a > > >>>>>> > >> custom input mapping.
> > >>>>>> > >> In my simple_form.rb initializer I have added the line: > > >>>>>> > >> config.input_mappings = { /lock_version/ => :hidden }
> > >>>>>> > >> This is not working. I have tested it with different fields > and > > >>>>>> > >> different input types and none of it appears to work. Did I > miss > > >>>>>> > >> something totally obvious?
> > >>>>>> > >> Thanks for your help.
> > >>>>>> > -- > > >>>>>> > At. > > >>>>>> > Carlos A. da Silva
> > >>>> -- > > >>>> At. > > >>>> Carlos A. da Silva