I'm in the process of updating rails from 4.1 to 5.2 I added the responders gem so respond_with is present. My ApplicationController now looks like th ...
I'm in the process of updating rails from 4.1 to 5.2 I added the responders gem so respond_with is present. My ApplicationController now looks like th ...
So my question is how to render the show template only if the entity belongs to the current user. I have this code in my controller But it still re ...
Is there an easy way to add a model's base errors to the flash message in the responders gem? When I try to delete a record with depending children t ...
I am trying to render a partial from a controller in rails 5 using ajax(on success) but the blank data is passed to ajax after the action renders a pa ...
I am upgrading my Rails app from 4.1.1 to 5.1.4. I am using roar-rails gem to parsing and rendering REST documents. I am facing some issues as respon ...
In a controller, I want to replace if..render..else..render with respond_with: The problem with respond_with is that, in case of a validation error ...
respond_with is acatually meant to use with ActiveModel's instances. I tried to use it with OpenStruct's instance, but it raises an error. Is that eve ...
I want to customize the error response of respond_with. The way it renders errors is like this: I would like to have it respond in a different way. ...
I am trying to create an api for my rails application in the Controllers folder I have created the following folder structure controllers > api ...
I'm using rails respond_with to send a JSON response to the client, and I'm trying to figure out how to use the includes option in respond_with along ...
I'm using responders gem, and I want to show validation errors when form is not valid. In my controller I created the interpolation_action and my r ...
Ok, so I have a Rails app, the 'responders' gem and Ember.js. I have set up the ember.js, I have created a model to test my app ( Lead ) and the cont ...
I'm using the gem Responders but I'm not able to show errors that I create on my models using erros.add(:base, 'Error message'). On my controller, be ...
I'm trying to use bare bones rails controllers and have a more fine-grained control at the same time. If I'm on :new action, I respond_with my new @in ...
I was running rails 3.2.1 and using rails 3 responders as well as the flash responder available in the responders gem: https://github.com/plataformate ...
I need to implement a custom Responder under "Module Responders", however, I am not sure where such code should live? ...
I am looking for a gem or solution to generate image in controller response. It would be nice if it's possible to do in controller like that: When ...
Returns only stores without their products, as does The association is tested, I can see the nested products in console ouput from, say, What ...
I am trying to figure out how to set the layout from a custom made responder. I want to use the request.xhr? to set the layout for render to 'ajax'. D ...