search for: clwholenam

Displaying 9 results from an estimated 9 matches for "clwholenam".

Did you mean: clwholename
2006 Jul 22
3
refactoring commonly used aggregations
I have a number of models that use an aggregation to combine First Name, Middle Initial and Last Name and they have been working fine. I am looking to clean this up, DRY it if possible. I have things like this in application.rb class Clwholename attr_reader :first_name, :middle_initial, :last_name def initialize(first_name, middle_initial, last_name) @first_name = first_name @middle_initial = middle_initial @last_name = last_name end def to_s [ @first_name, @middle_initial, @last_name ].compact.join(" ")...
2006 Mar 10
3
css question
I''m doing this ''partial'' to do some ajax auto_complete <ul class="placements"> <% for client in @clients do -%> <li class="placements"> <div class="clwholename"><%=h client.clwholename %></div> <div class="id><span class="informal"><%= client.id %></span></div></li> <% end -%> </ul> and my understanding was that <span class="informal"> would make the eleme...
2006 Mar 14
2
autocomplete using other models
...traction - my guess is because not many people are doing this. I am working in a controller/views called placements. Placements belongs_to :client I have a clients model/table - clients has_many :placements in placements/find...this works fine... <%= text_field_with_auto_complete :placement, :clwholename, {} %> if I put the same code into placements/new or placements/edit, I get a No method ''clwholename'' error The method is defined at the top of placements_controller.rb ... def auto_complete_for_placement_clwholename auto_complete_responder_for_clients params[:placemen...
2006 Feb 27
2
Ajax - from there to here
...#39;'%''], :order => ''last_name ASC'', :limit => 8) render :partial => ''cookies'' end and my cookies partial looks like this... <ul> <% for client in @clients do -%> <li class="clients"><%=h client.clwholename %></li> <% end -%> </ul> # clwholename is the actual aggregation in client.rb so far so good...when I type a letter or two, the auto_complete list shows and I can select a name from the list. But then my problem starts. I can''t **easily** ''find'' b...
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using last_name. so looking for ''ivanoff'' works great, but I can''t find ''john''. Plus I like to have ''last_name, first_name'' show up in the dropdown. what I can''t figure out is how to concat first_name and last_name to make a name and use that to look it. working
2006 Mar 04
6
validation of aggregates
This may not be possible... I have an aggregation of clwholename defined in my model. the aggregation builds clwholename from :first_name, middle_initial, last_name and it generally works fine. I am trying to add a validation so while there may be many ''John'' first_names, and ''Doe'' last_names, I only want one ''Joh...
2006 Mar 12
0
undefined method and auto_complete
...39;t understand... I have 2 methods/actions in the same ''placements'' controller that I am concerned with... find, works properly... view code from find.rhtml <td><p><label>Client</label><br/> <%= text_field_with_auto_complete :placement, :clwholename, {} %> </p> </td> new, which throws me an error... undefined method `clwholename'' for #<Placement:0xb78e0dc0> which has the same exact view code as above... clwholename is an aggregation defined in the Client class which combines the client first_name, middle...
2006 Mar 14
1
removing an object from params hash
I have an object that I would like to remove from params hash thinking that may solve a problem (it might not). params[:placement][:clwholename] how can I just remove it from the params hash? Craig
2010 Mar 09
4
edit existing PDF as template
Hi, I am new to rails. I need to edit an existing pdf file and fill in some data and send it to browser, how to implement this? Is there an example online I can look at it? Thanks! -- 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