ruby on rails - How to generate RABL instead of ERB file -


how generate rabl view instead of html.erb

am using following command

rails generate controller users new create update edit destroy index show 

am getting .erb views. need rabl view.

rabl included in gemfile

gem 'rabl' 

i think you're asking generator creates 'rabl' files scaffolding?

as far know,

nope. there isn't generator inside rabl gem.

as ckruse said; file -> new -> show.rabl


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -