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:
>
> > swap SimpleForm, :input_mappings => { /lock_version/ => :hidden } do
> > with_form_for @user, :lock_version
> > assert_no_select 'form input#user_lock_version.integer'
> > assert_select 'form input#user_lock_version.hidden'
> > end
>
> > And it works.
>
> > Rafael Mendonça França
> > Twitter:
http://twitter.com/rafaelfranca
> > Blog:
www.rafaelfranca.com.br
>