On Nov 29, 7:11 pm, DmitryS <[email protected]> wrote:

>
> _skills_list.html.erb
>
> <div id="skills_list">
> <table>
>   <tr>
>     <th>Title</th>
>     <th>Parent</th>
>   </tr>
>
> <% @skills.each do |skill| %>
>   <tr>
>     <td><%= skill.title %></td>
>     <td><%= skill.parent_id %></td>
>   </tr>
> <% end %>
> </table>
>
> </div>
>
> It finally prints <%= escape_javascript(render :partial=>'skills_list') %> 
> instead of rendering skills list. I would appreciate if you tell me why.
>

The files in assets there aren't passed through erb, they're not
supposed to reference application contents etc. They're completely
static js, css etc files that rails does clever stuff to ensure that
they are delivered to clients in a way that is efficient, cache
friendly etc.
If you want a js template to be rendered for your action then it
should live in the same place as your other templates (i.e. app/view/
skills)

Fred


> Thank you in advance,
> Dmitry.

-- 
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.

Reply via email to