I
I
Ilya Lazarev2014-06-30 19:30:30
Ruby on Rails
Ilya Lazarev, 2014-06-30 19:30:30

Why dot instead of slash?

Good evening, colleagues. I created a new model with a controller and views, I wanted to set up the simplest interaction with CRUD. Those. create/delete/update record.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Lazarev, 2014-06-30
@CrusaderGo

Together with @iamnothing we found a solution to the problem. You need to rename the controller to Zayavkas, the folder with views also to zayavkas, and add to routes.rb:
resources: zayavkas

S
Shetani, 2014-06-30
@Shetani

I'm not sure, but maybe in routes.rb you need to write like this:
get '/zayavka/:id', to: 'zayavka#show'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question