Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if record.save
- ....
- redirect_to records_url, :anchor => "record_" + record_id.to_s
- end
- var record_id = window.location.href.hash.split("_")[1];
- var record_id = window.location.href.hash.split("_").last;
Add Comment
Please, Sign In to add comment