Questions tagged as 'ruby-on-rails'

1
answer

Pass parameter of selected line to another RUBY view

I am a beginner in ruby. I have a table in a view, which when I click on the line / item it should pick up the ID of the selected line and move to the other view that will be triggered, I am 3 days searching about and can not implement. The vi...
asked by 01.09.2017 / 00:25
1
answer

Rails Admin- Problems with gem paperclip and ckeditor

I integrated my application with rails admin, and I placed the ckeditor in one of the forms, I followed all the steps of official documentation it is not accepting my config.js, I reduced the amount of options because it was not necessary to h...
asked by 29.08.2017 / 16:19
1
answer

How to pass parameter for validation / treatment in the RUBY view

I have a great doubt, I accept tips if they see a better option to do what I want. I have a layout that links to two items in the same view > > <ul class="nav nav-second-level"> <li> <%= link_to backoffice_pedidos_pat...
asked by 26.08.2017 / 22:40
0
answers

How do I create a route in Rails that accepts a dotted (.) url? type "[email protected]"

Good morning, I have an application where users register their information and each user's primary key is their email. So in the show method the parameter I get is email. However, the default routes do not accept what comes after the poi...
asked by 06.08.2017 / 14:52
1
answer

facebook mongodb rails authentication

Hello, I'm developing an authentication system with facebook, using ruby on rails and mongodb. I need to do the device integration with facebook api (understand like any other social network, too), for the system. I do not find consistent mat...
asked by 26.07.2017 / 22:16
1
answer

Rails link to dynamic

I have the following question, in my controller there is a variable that picks which model the guy is coming from and sends it to the view. I would like to create a link from this variable type: link_to @link (variable: @variavel), in this pa...
asked by 29.07.2017 / 23:24
0
answers

Centralize Google Maps between two Javascript routes

Good Afternoon, Guys! I'm having trouble centralizing using Google Maps API between 2 points, which happens below in the screenshots below. The application is in Ruby on Rails and we use JS for some of the maps, when I click to open the mo...
asked by 12.07.2017 / 21:10
1
answer

How to find Entity and Daughters in a single sql

I have 3 classes that relate as follows: class AnamnesisModel < ApplicationRecord has_many :anamnesis_questions accepts_nested_attributes_for :anamnesis_questions end class AnamnesisQuestion < ApplicationRecord belongs_to :anamnes...
asked by 12.07.2017 / 20:20
2
answers

NameError in PostsController # index | uninitialized constant PostsController :: Post

Galera, unwittingly my girlfriend moved the folders of my project in Ruby on Rails and started to make that mistake. What can I do? It looks like he's not recognizing the Post as a class ...     
asked by 18.07.2017 / 23:31
1
answer

Simple Form different input for a model

I have in my database a column value with precision 7 and 2 type big decimal. In my form I use the simple form and I also use the Mask, ie field for value entry would look like this: 70,567.54 However, at the time of saving, the c...
asked by 18.06.2017 / 06:45