search for: activity_id

Displaying 7 results from an estimated 7 matches for "activity_id".

2013 Nov 08
2
Export CSV
...trip %> <%if !@trans.nil? && @trans.length > 0 %> <% @trans.each do |tran|%> <% if !tran.transaction_id.nil? && tran.transaction_id.present?%><%tran_id = tran.transaction_id%><%else%><%tran_id = "-"%><%end%> <% if !tran.activity_id.nil? && tran.activity_id.present?%><%tran_actid = tran.activity_id%><%else%><%tran_actid = "-"%><%end%> <% if !tran.activity_name.nil? && tran.activity_name.present?%><%tran_actname = tran.activity_name%><%else%><%tran_actnam...
2007 Jun 22
1
nested rest URL => passing param from select
Hi, I''m trying to create a select box with an onchange event. When onchange is fired, I want to redirect to a nested rest url. The problem is that I don''t know how to pass the selected value to the url: <select id="category" onchange=" <%= remote_function(:url => category_articles_path(selected value?) ) %> "> Any suggestions? -- Posted
2005 Nov 19
3
Form values not included in submit when ajax generated.
Hi. I have a form with two select lists, named ''project'' and ''activity''. The content of the ''activity'' list is changed when the selected item in project changes, using ''observe_field'' where project is observed, and a div enclosing ''activity'' is updated. This works as expected. The problem is that when
2007 May 22
3
can I use acts_as_list with a has_many :through association
...Temperature of mixing water - TEEMSS demo Here''s where the error occurs: >> my_unit.activities[0].move_to_bottom NoMethodError: undefined method `move_to_bottom'' for #<Activity:0x34dec54> from At this point my unit_activities table looks like this: id activity_id unit_id position ---------------------------------------------- 1 55 1 1 2 42 1 2 3 25 1 3 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &quo...
2006 Jul 06
1
Multiple Keys in a Database Table
...eir values (if a field never gets set in that table, but should still exist, that query wouldn''t find it). The way I thought about this problem initially was to have the activity_fields table set up like this: id, name, description, and the activity_field_values table set up like this: id, activity_id, activity_field_id, value. Doing that, I''d have unique activity field values for each activity and field ID. The problem I ran into was... how do I access that value? If I accessed @ activity.activity_type.activity_fields, I could get all the fields associated with a particular activity ty...
2012 May 10
6
Is it suitable using STI?
I have problems on a simple design problem. I have many companies. Each company have one or more commercial activity. Activities types are: ecommerce, local unit, television, automatic vending machines, and so on. Company may have one or more ecommerce activity or one or more local unit activity, one ormore vending machines, etc. How can I model this scenario? Company has_many ecommerce has_many
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so: http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html Seems like it''s getting genuine rebuttals, though. It''s actually kind of amusing.