Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have:
- VIEW:
- <%= form_remote_tag :url => {:controller => 'graphs',
- :action => 'img_url'}, etc
- CONTROLLER:
- def img_url
- render_text "<img src=/graphs/total?graph%5Bstart%5D=#{params[:graph][:start]}&graph%5Bperiod%5D=#{params[:graph][:period]}&graph%5Brate%5D=#{params[:graph][:rate]}>"
- end
- This is working, but now I want :
- VIEW:
- <%= form_remote_tag :url => {:controller => 'graphs',
- :action => 'img_url("total"'}, etc
- CONTROLLER:
- def img_url(type)
- render_text "<img src=/graphs/#{type}?graph%5Bstart%5D=#{params[:graph][:start]}&graph%5Bperiod%5D=#{params[:graph][:period]}&graph%5Brate%5D=#{params[:graph][:rate]}>"
- end
- But its not working like that. :/
Add Comment
Please, Sign In to add comment