> Ignoring the presence of so much code in a view>>
yes i totally agree, but i cant quite figure out how to keep it in the
controller.
because i need to use the tc.id, thats taken from the following loop
<% @testsuite.testcases.each do |tc| %>
<tr>
<td align="left"><b><%= link_to tc.number, {:controller =>
'testrun', :action => 'runtest', :id => tc.id, :id1 => @testrun, :id2 =>
@testsuite.id, :id3 => @version } -%> </b></td>
</tr>
<% end %>
any suggestions would be great, basically its iterating over a list.
test.rhtml
(tc.id)
\
TC# DESC STATUS LAST RUN
1
2
3
controller.rb
@testcase = Testcase.find(:all)
@testsuite = Testsuite.find(params[:id])
--
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---