Ruby on Rails Tuesday, June 29, 2010

How would this work with the observe_field later in the page ? This is
an edit page, so if the field is changed, the page needs to react
correctly This works fine for a new user, but will it be OK for changing
an existing user ?

Thanks for the reply

Bob

> <div id="church">
> <% if @household.zip != xxxxx and @household.zip != yyyyy %>
> <%= render :partial => "church_select %>
> <% end %>
> </div>
>
> You need to change the render :nothing in your controller to render an
> empty string or partial to empty the content of the church div when
> appropriate.
>
> HTH,
> Bill

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment