[Railstat-list] error launching app
Olivier Desport
desport at crdp.ac-versailles.fr
Sun Mar 8 06:10:32 EDT 2009
----- "Olivier Desport" <desport at crdp.ac-versailles.fr> a écrit :
> Hello,
>
> I've followed instructions on the site. When I launch rail_stat/path I
> get the following error :
>
> NoMethodError in Rail_stat#path
>
> Showing app/views/rail_stat/path.rhtml where line #2 raised:
>
> undefined method `has_key?' for "menu":String
>
> Extracted source (around line #2):
>
> 1: <h1>Path statistics for <%= @subdomain %> </h1>
> 2: <%=render_partial 'menu'%>
> 3: <h2>Last paths</h2>
> 4: <div id="path_stats">
> 5: Number of hits:
>
> ...
>
> /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/partials.rb:149:in
> `render_partial'
> app/views/rail_stat/path.rhtml:2
>
> My config :
>
> rail 2.2.2
> eventmachine (0.12.4)
> rail_stat_generator (2.0.0)
>
>
> Any idea ?
>
> Thanks
I've the solution : render_partial is deprecated. Now we have to use
render :partial => 'menu'
More information about the Railstat-list
mailing list