Re: [Rails] Re: How to "intercept" each action call?

2012-05-11 Thread Lauro Caetano
r :find_task > >def find_task > @task = Task.find(params[:id]) > # Some other operation involving MyGem if you need... >end > > def show > respond_with(@task) > end > end > > > Dheeraj Kumar > > On Saturday 12 May 2012 at 6:37

Re: [Rails] Re: How to "intercept" each action call?

2012-05-11 Thread Lauro Caetano
I've explained better now. 2012/5/11 Jeremy Walker > > > On 12 May 2012 01:48, Lauro Caetano wrote: > >> Thanks for your help Dheeraj, but I'm trying to do something like >> Responders. >> >> Responders has a respond_to :html in controllers, that is used

Re: [Rails] Re: How to "intercept" each action call?

2012-05-11 Thread Lauro Caetano
able to modify the attribute that was passed. I have no idea to make this work. 2012/5/11 Dheeraj Kumar > You need a before_filter. > > http://edgeguides.rubyonrails.org/action_controller_overview.html#filters > > > > Dheeraj Kumar > > On Saturday 12 May 2012 at 5:53

[Rails] How to "intercept" each action call?

2012-05-11 Thread Lauro Caetano
ntroller do_something_to :some_attribute def index respond_with(@some_attribute) end end In each call of index or other action from MyController, I want that MyGem execute "do_something_to" modifying the value of "some_attribute". Is it possible? Thanks, Lauro Caetano -- You re

Re: [Rails] Country State City using AJAX

2012-05-02 Thread Lauro Caetano
This is a good resource to start: http://railscasts.com/episodes/88-dynamic-select-menus 2012/5/2 AJ > HI , I have a state and country drop down in my client form and i > want that state to be populated when a country is selected, How ever > iam struggling on it... i dont want to implement plai

Re: [Rails] AJAX and Jqery

2012-05-02 Thread Lauro Caetano
This is a good resource: http://railscasts.com/episodes/240-search-sort-paginate-with-ajax 2012/5/2 AJ > Hi iam trying ti implement a simple search functionality with AJAX and > Jquery, iam able to see the responce in the console, however the html > doen not change, iam getting this status messa

Re: [Rails] Simple_form bootstrap style inline-form not working properly

2012-04-23 Thread Lauro Caetano
Change the :html => { :class => 'form-inline' } to :html => { :class => 'form-horizontal' } 2012/4/23 Abram : > Anyone familiar with bootstrap and simple_form. Please help! > > http://stackoverflow.com/questions/10279164/simple-form-bootstrap-style-inline-form-not-working-properly > > -- > You rec