Skip to content

@dblack /gist:1001522
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Why does the app always take the HTML/index.html.erb path when the link is clicked?
Does index.js.erb not work any more?
# in controller
def index
@page = Page.find(params[:page_id])
@ideas = @page.ideas
respond_to do |format|
format.js
format.html
end
end
# in view
<%= link_to "Show ideas", scratchpad_page_ideas_path(@scratchpad, page),
:remote => true %>
# files
index.html.erb index.js.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.