roar-rails
roar-rails copied to clipboard
Use Roar's representers in Rails.
- Add additional condition and adapter for Rails 7
Hi guys, when I run > rails g representer Post On rails 6 api app I receive > /home/rusikf/.rvm/gems/ruby-2.6.4/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `block in load_missing_con > stant': uninitialized constant ActionController::Responder (NameError) > from...
I have a controller which is working fine for every method but an update method which needs to return the edited contents of a record so that the updated datetime...
In the main Readme it says: > Represents Configuration > > If you don't want to use conventions or pass representers you can configure them on the class level using...
The docs talk about [Rendering with #respond_with](https://github.com/apotonick/roar-rails#rendering-with-respond_with) and [Rendering with #render](https://github.com/apotonick/roar-rails#rendering-with-respond_with). Is there a preference for one or the other?
ruby 1.9.3-p429 rails 3.2.13 representable 1.5.3 roar 0.11.18 roar-rails 0.1.0 I'm experiencing a strange intermittent error involving multipart posts. It happens rarely, but once it starts to happen, it keeps...
Hello This is actually a best practices / usage question, as I didn't find any examples of that. Here are two scenarios. I use decorator pattern. ### Scenario 1: Let's...
Hi, I have a representer in a rails engine with the following code: ``` ruby module Tipax::ClientApi module GeoLocationRepresenter include Roar::JSON property :title end end ``` and the controller that...
We could need _generators for creating representers_ in Rails. Anyone? Usage could be like ``` rails g roar:representer singer name band:Band albums:collection ``` This API is subject to discussion, what...