new/show/edit actions are now working correctly but index is giving
the error:
-- cut here --
app/views/runners/index.html.erb (ERB Template) 19
14 <td><%=h runner.distance %></td>
15 <td><%=h runner.minutes %></td>
16
17 <td><%= link_to 'Show', resource(runner) %></td>
18 <td><%= link_to 'Edit', resource(runner, :edit) %></td>
19 <td><%= delete_button(runner, "Delete #{runner.title}") %></td>
20 </tr>
21<% end %>
22</table>
23
24<%= link_to 'New', resource(:articles, :new) %>
app/views/runners/index.html.erb (ERB Template) 12
7 <th>Time (in mins)</th>
8
9 <th colspan="3">Actions</th>
10 </tr>
11
12<% @runners.each do |runner| %>
13 <tr>
14 <td><%=h runner.distance %></td>
15 <td><%=h runner.minutes %></td>
16
17 <td><%= link_to 'Show', resource(runner) %></td>
app/views/runners/index.html.erb (ERB Template) 12
7 <th>Time (in mins)</th>
8
9 <th colspan="3">Actions</th>
10 </tr>
11
12<% @runners.each do |runner| %>
13 <tr>
14 <td><%=h runner.distance %></td>
15 <td><%=h runner.minutes %></td>
16
17 <td><%= link_to 'Show', resource(runner) %></td>
app/controllers/runners.rb in `index' 7
2 # provides :xml, :yaml, :js
3
4 # GET /runners 5 def index
6 @runners = Runner.find(:all)
7 display @runners
8 end
9
10 # GET /runners/:id
11 def show
12 @runner = Runner.find_by_id(params[:id])
-- cut here --
-Arun
On Nov 17, 12:32 pm, "Michael Klishin" <[EMAIL PROTECTED]>
wrote:
> 2008/11/17 Arun <[EMAIL PROTECTED]>:
>
> > MRI and JRuby gives the same result. This app is generated using "core
> > app" and is using ActiveRecord as ORM.
>
> Both should not matter here. What is in your init file?
> --
> MK
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---