Displaying 1 result from an estimated 1 matches for "select_skill".
Did you mean:
  select_fill
  
2011 Nov 29
1
ajax question
...@skills = Skill.all
    respond_to do |format|
      format.html # index.html.erb
      #format.json { render json: @skills }
      format.js
    end
  end
end
index.html.erb
<%= collection_select(nil, :id, @skills, :id, :title, {:prompt=>"Select one", :id=>:id},{:id=>"select_skill"}) %>
<div id="skills_list">
</div>
app/assets/javascripts/index.js
$(document).ready(function() 
{
	$("#select_skill").change(function()
	{
			$("#skills_list").append("<%= escape_javascript(render :partial=>''skills_list'&...