Profile
Achievement
insanedreamer's Recent Rails Snippets
- All /
« Prev 1 Next »
Put this in application layout for global use. Have a hidden div called 'loadicon' with a loading icon (or whatever) in it, which is shown/hidden on ajax calls.
0
756
posted 13 years ago by insanedreamer
Add this to .irbrc.
Allows the following in console:
> gethtml('/login')
=> HTML of whatever page is generated by /login
0
720
posted 13 years ago by insanedreamer
in Rails 2, use `include ActionController::UrlWriter` instead.
1
1843
posted 13 years ago by insanedreamer
Put this in `test_helper.rb` and call with `show(object1, object2, etc.)`
0
672
posted 13 years ago by insanedreamer