search for: update_nam

Displaying 3 results from an estimated 3 matches for "update_nam".

Did you mean: update_name
2007 Sep 20
2
Rendering a partial from within that partial
...link_to_function (name.full_name, :onclick => "Element.show(''edit_name_#{claimantname.id}'')" %><br> <div id="edit_name_<%= claimantname.id %>" style="display:none;"> <%= form_remote_tag(:url => {:action => ''update_name'', :id => name} )%> <%= text_field ''name'', ''first_name'' %> <%= text_field ''name'', ''last_name'' %> <%= submit_tag ''Edit'', :onclick => "Element.hide(''edi...
2006 Dec 26
0
alias_method_chain vs. redefined method with super
...attribute to be derived for Musicians (first_name+last_name) and Duos (first_artist.name+last_artist.name) and persisted so I can sort all Artists by name. I added code to Musician which redefined first_name= as: class Musician < Artist def first_name= (first_name) super(first_name) update_name # sets name to first + last end ... end For the Duo class, however, this didn''t work. It''s definition looks like: class Duo < Artist belongs_to :first_artist, :class_name => ''Artist'' belongs_to :other_artist, :class_name => ''Artist...
2006 Feb 10
36
Advocating RoR in the enterprise?
Hi folks, I''m looking for advice on how to promote RoR in my workplace. Specifically, I''d like to work out a strategy for promoting development in Rails as a new alternative to our existing technology (the usual suspects... mostly Java/Oracle, .NET, PHP, and a bit of Perl here and there). Some background: I work for a fairly large state environmental agency as a web developer.