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
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
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
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
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
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
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
7 matches
Mail list logo