resource-controller

Rails resource_controller with interruption?

I want to use the before action to optionally interrupt the processing if it fails to comply certain criteria (e.g. the object is not owned by such user etc) I need to use this because I have a more complicated scenario that I need the object to be loaded before the access rights could be determined, so I would have situations where I w...

resource_controller get rid of setting flash notice?

I am talking about rails resource_controller gem plugin here: Basically when I am doing json format, I would like to completely suppress the flash notice if possible, trying to call flash "" will fail, while calling flash[:notice]="" doesn't look really nice either. Is there some better approach? ...

Reddit clone in Rails with Rspec, resource_controller problem

http://github.com/samliu/rlinkset ^^ My code so far is pushed to there. Essentially, I'm using resource_controller and I don't really understand resource_controller. When I used scaffolding to create my Post model, I gave it fields like :integer parent #to say what level a post is at (which post ID is this post's parent) :integer user...