A
A
Alex2015-11-17 00:50:17
Angular
Alex, 2015-11-17 00:50:17

How to prevent rendering of views by default (app/view/nameModel/index.html.erb)???

I'm trying to learn AngulaJS and have a question!!!
The index action refuses to work without its own view (you have to create an empty one), and then Angular loads its template from public/templates/index.html
How to do it easier?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vsuhachev, 2015-11-17
@vsuhachev

Use rails-api for example. Or 5 rails, it's already built in

A
Andrey Andreev, 2015-11-20
@b0nn1e

render nothing: true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question