search for: ara_vartanian

Displaying 4 results from an estimated 4 matches for "ara_vartanian".

2008 Mar 03
3
Admin and standard controllers RESTFully
Hello. I will appreciate the opinion. What is the standard way of separating admin functions from normal- user functions? before_filter in one controller? Use two controllers, i.e. ProductController and Admin/ ProductController? I want to use map.resources so RESTFul would be better. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2006 Jun 03
1
validating embedded form parameters
For controller action filters, I cannot seem to find the syntax for validating nested request parameters. For example, let''s say I had an input field named "person[name]" verify :only => :create, :params => :person, :redirect_to => {:action => ''new''} What is the syntax for verifying the name property? I have tried out every
2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
I''ve often felt the need including Rails'' view helpers within my controllers, if only for some simple things like formatting my flash notices with text helpers or html escaping. I loved this suggestion, which helps by not cluttering the namespace of controllers: http://snippets.dzone.com/posts/show/1799 But I wanted to generalize this a little to automatically include whatever
2006 May 31
2
calling routing during a functional test
I had a beginner''s question. I am testing the create action on my controller. I wanted to fetch the ID parameter of the newly created object, so that I can make some assertions on it. But I can''t seem to find an elegant way of doing that. Of course, might create action redirects. That means that @response.redirect_url is something like "/show/8". So I could pluck