[Rails] Putting form_authenticity_token (csrf token) in a cookie instead of in meta tags?

2014-05-04 Thread Brian Morearty
When you generate a default Rails app, it puts this in application.html.erb: %= csrf_meta_tags % It does this so the remote forms can be submitted--i.e., so JavaScript can submit a form. When jquery-rails is about to submit a form, it looks for the meta tags named csrf-param and

[Rails] Real-time web traffic alert notifications (email or SMS) on the cheap?

2011-02-11 Thread Brian Morearty
I'm a big fan of New Relic. One of the services they provide is alerts when your traffic goes up unexpectedly above a predetermined level. Does anyone have a favorite, inexpensive traffic alert tool that can be used on a small site--a site that's not yet big enough for monthly payments of $150

[Rails] Re: redirect_to problem .. caching?

2009-01-27 Thread Brian Morearty
Hi gang, I had the same problem. I've just figured out the fix. Use: redirect_to :action = :symbol instead of redirect_to :action = 'string' Then the flash message is shown. Too bad you have to remember that distinction, though. That shouldn't be necessary. -- Posted via