RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: oleander
Site: http://radiofy.se
Why not just sign all params on the client and server side using SHA1?
Client: api_key = SHA1(params, secret_salt, date) Server: SHA1(params, secret_salt, date) == api_key
api_key = SHA1(params, secret_salt, date)
SHA1(params, secret_salt, date) == api_key
tailf doesn't exist in OS X, using tail -f -n 40 log/development.log works tho.
tailf
tail -f -n 40 log/development.log
A good idea, if you have the money, is to use Websolr.
Yes. One solution is to add a comment observer that updates the article model when needed.
class CommentObserver < ActiveRecord::Observer def after_save(comment) if comment.content_changed? Sunspot.index!(comment.article) end end end
Remove the dot in the end of the url.
[Ryan Bates: fixed it]
Why not just sign all params on the client and server side using SHA1?
Client:
api_key = SHA1(params, secret_salt, date)
Server:
SHA1(params, secret_salt, date) == api_key
tailf
doesn't exist in OS X, usingtail -f -n 40 log/development.log
works tho.A good idea, if you have the money, is to use Websolr.
Yes. One solution is to add a comment observer that updates the article model when needed.
Remove the dot in the end of the url.
[Ryan Bates: fixed it]