search for: active_client

Displaying 5 results from an estimated 5 matches for "active_client".

2006 Apr 04
5
getting the value of a form select
...ithout success, so I feel that its now time to give up and ask for some help since it seems that I am obvisouly missing something... all I want to do is having a form with a dropdown menu. When the user select a value from the drop down and sumit the value, this value must be the new ''active_client''. Technicaly, when the form is submited from the list page, it calls the change_active_client action that take care of changing the client''s ID in the session then returns the control to the list action. My problem is that when I try to output the value stored in the session,...
2006 Apr 16
5
render :collection and default value
Hi all, I am having a lot of trouble to get the default value of text fields when they are generated by a partial from a collection. I have been on this for a whole week and I didnt find a single exemple on the internet of someone using a partial that generate text field with a default value. I cant believe that I am the only one having this problem. Anyone has an exemple they can show me?
2006 May 19
1
Need help with a test
...thod that I need to test: def link_concept_to_client concept_to_link = Concept.find(params[:concept_id]) # take all the variations for the concept for variation in concept_to_link.variations new_client_variation = ClientVariation.new new_client_variation.client = session[:active_client] new_client_variation.variation = variation new_client_variation.name_fr = variation.name_fr new_client_variation.name_en = variation.name_en new_client_variation.save end flash[:notice] = "Concept linked" redirect_to(:action => "list") e...
2006 Apr 11
1
Default value in a Partial that use index
Hi, here is my situation. I have this controler action: ---------CONTROLER-------- def list @variations = Variation.find(:all, :conditions =>["client_id = ?", @active_client.id] ) end ---------CONTROLER-------- Which call this view (removed irrelevant parts): ----------LIST.RHTML-------------- <p>listes des conceptes existants pour le client actif:<p/> <%= start_form_tag (:action =>"save_list")%> &lt...
2006 Feb 09
30
why there is no automatic relationship discovery
When I explain RoR to someone I don''t have a convincing argument that explains why everything is so automatic and transparent, but relationships have to be encoded by hand in models. That shows I don''t understand well that part of AR. There''s the argument that says that not all databases offer metadata about foreign keys, but the natural question then is that,