Questions tagged as 'ruby-on-rails'

1
answer

error in select and autocomple ruby on rails

Hi, I'm doing a form and it requires an autocomplete and selects but in the paths; When I'm going to save, I get an error. the screen pulls an error remains in validation. I put the Log My code: Model reunion.rb...
asked by 15.06.2017 / 04:25
1
answer

fe_sendauth: no password supplied Ruby On Rails 5

I'm going to upload a Rails project to Heroku so the project is in Postgres but when I try it in development (Not in production) I get this error: PG :: ConnectionBad fe_sendauth: no password supplied In my database file I have it like this:...
asked by 30.06.2017 / 03:34
1
answer

validate 24 hours rails

validate :prueba def prueba self.hora_pedido = Time.zone.now.strftime("%Y-%m-%d-%H:%M:%S" ) if ( hora_entre - ( 60 * 60 * 24 ) ) < ( hora_pedido ) errors.add(:hora_entre, "hora no válida") end end validate hora_entre...
asked by 20.06.2017 / 20:10
1
answer

chainselect ruby on rails It does not work for me

I try to make a select with a form, but when I'm going to save this I get this, and I do not know what I have wrong.    undefined method 'map' for nil: NilClass       around line # 17 <%= select_tag "pais", options_from_collection_for...
asked by 05.06.2017 / 06:00
1
answer

how to make a v-link connection with vue.js + rails?

I want to make a connection to another view and use the parameters of the first view in the    landig page: video_populares.vue with vue.js + rails, but I am confused by the examples that I find do not use for meters of an API, I will be...
asked by 06.06.2017 / 18:02
1
answer

Read a join table in ruby on rails

As I can read (find, take) a join table created from the contact and group tables, in the migration the join table ContactGroup was created, but I do not see it in the model. Attachment migration of contact table, group and contact group....
asked by 03.09.2017 / 22:44
1
answer

Rails does not start server in Ubuntu

I am starting to use Rails, and I can not raise the server with the rails s command, I have installed rails 5.1.1 and until a couple of days ago everything worked fine, but now it sends me the following error every time I try to start it:...
asked by 01.06.2017 / 23:52
1
answer

Problems between document.ready and turbo-links of ruby on rails

My problem is very simple, I have the need to create a carousel in 3d, but to avoid that I decided to find one of my liking and try to customize it to my liking, it works correctly that you download, just that it is not in ruby and I decided to...
asked by 31.05.2017 / 19:18
1
answer

chainselect ruby on rails, problem with javascript [duplicate]

I try to make a select with a form. Form <%= simple_form_for(@persona) do |f| %> <%= f.error_notification %> <div class="form-inputs"> <%= f.input :identificacion %> <%= f.input :nombre %>...
asked by 07.06.2017 / 14:50
0
answers

Why does my view change with the "v-bind: href=" "" go blank?

I'm making a change of view using vue.js and ruby on rails, at the moment of making the change it only makes the jump of sight but it does not load the view this is the code so that they give an idea: routes.rb: get 'programas/:slug/videos/...
asked by 09.06.2017 / 15:46