Questions tagged as 'ruby-on-rails'

0
answers

Update web project with rails 5 and Capistrano 3

Hello, I would like to know how I could do so that the client when using the web system, could update it by calling a Capistrano command. My architecture is 1 server per client. The idea is for a folder with the updated version to be relea...
asked by 20.02.2018 / 12:37
0
answers

Ruby - MSYS2 Update

I'm starting in Ruby in Windows environment and am having the following problem installing RubyInstaller during the development kit installation process. :: Starting core system upgrade... atenção: terminate other MSYS2 prog...
asked by 20.02.2018 / 04:43
0
answers

Map Hash in Ruby

I am loading a hash of an .yml file in the following format: { 'user_id' => 'id', 'profile' => { 'about_me' => 'about', 'phone' => { 'mobile' => 'mobile_phone', 'home' => 'home_phone' }}} I want to output another hash with...
asked by 11.02.2018 / 18:04
1
answer

Problem with ruby on rails

I have a compilation error in rails but you can not put all the errors that appear in the screen of the command prompt, but in the end lines this information appears    [NOTE]       You may have encountered a bug in the Ruby interpreter or e...
asked by 11.02.2018 / 03:35
0
answers

Deploy an application on a machine for each client

I have a question. I have an application in rails that will be used by several different clients. I'm studying the best environment to put the application in the air. Does Heroku have the possibility of deploying the same application on a machin...
asked by 15.02.2018 / 12:48
1
answer

Ruby on rails routes

I'm starting in Ruby on Rails and I had a problem with nested routes : class Maquina < ApplicationRecord has_many :verificacaos accepts_nested_attributes_for :verificacaos end class Verificacao < ApplicationRec...
asked by 23.01.2018 / 19:46
1
answer

rails_admin employee can only edit who is not administrator

Rails 5 gens rails_admin, devise, cancancan I have a User Template : string, ..., admin_role: boolean, employee_role: boolean, user_role: boolean} class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest...
asked by 09.01.2018 / 00:39
1
answer

Error with bcrypt in Rails 5.1

In a new project, after installing Gemfile gems, how much do I try to start the server with rails s the following error and displayed in the console: LoadError: cannot load such file -- 2.3/bcrypt_ext     
asked by 14.12.2017 / 12:57
1
answer

Add content at cursor position with Froala editor

I have a textarea field and a second select field. I want to click on a certain place in my textarea , and then choose a of the options in my select field, and I want this option to be chosen ( any text ), to appear in the place I last clicke...
asked by 11.12.2017 / 22:45
1
answer

Deploy Rails project on AWS, access without using port

I need to upload a site developed in Rails into AWS . However, every time I start it it is only accessible if I specify the port used by Rails    (www.domain.com:3000, for example). I've tried to work around this in AWS balance setting...
asked by 06.12.2017 / 15:29