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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -