Questions tagged as 'ruby-on-rails'

0
answers

Positioning number of pages Rails

I'm trying to put the number of pages on the pe, but by giving crtl + P to print the number is just below the content, that 99% of the time is either in the middle of the page or a little below it.     
asked by 14.06.2017 / 20:43
1
answer

How to use the SideNav component of gem Materialize

I want to use the SideNav of Materializecss, but when I put it in application.html.erb, using the documentation images they are not where they should stay. Followthecurrentcode:application.html.erb<!DOCTYPEhtml><html><head>&...
asked by 29.06.2017 / 13:19
1
answer

Update parent model when it is nested as the child

I am creating a system where the user creates a proposal, in the proposal form he must enter the data of the client that is in a separate table. This is working to create the proposal, but not to upgrade, because the way I am presenting below...
asked by 03.06.2017 / 20:14
1
answer

Null return of a JS object in rails

I have the following code: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-hover custom" id="tabelaProduto"> <thead> <tr> <th>id</th>...
asked by 29.05.2017 / 20:34
0
answers

Terminal Xfce does not recognize ruby and rails commands

Hello, when trying to execute ruby commands or rails in the terminal of the Linux Manjaro error occurs informing that the command is not recognized.  I tried to perform the same procedure I used for Ubuntu, but it did not work. Anyone have any t...
asked by 29.05.2017 / 03:27
1
answer

Help with Relationship between 3 Tables #Rail

I would like your help with this issue below I have 3 Tables: Product Purshase Supplier supplier_id product_id name class Purshase < ActiveRecord::Base belongs_to :product end class Product < ActiveR...
asked by 26.05.2017 / 20:27
0
answers

How to redirect after login - Rails

Routes: Rails.application.routes.draw do get 'home/inicio' root 'login#new' scope "/login" do get "/acesso", to: "login#create" post "/acessorecebendo", to: "login#create" get "/sair", to:"login#destroy" end resources...
asked by 05.06.2017 / 18:55
1
answer

Save data from a WYSIWYG editor to the database

I'm going to have a "form" inside it will have a WYSIWYG like get the data typed inside it and save it in the bank, because I'll have text and images inside. I'm developing in Ruby, and trying to understand tinymce-rails, I'm new to Ruby develop...
asked by 02.06.2017 / 19:06
1
answer

JS is not being loaded on a route in RAILS

Hello! I have the following code snippet from the home page of my project: <li class="next" style="display: inline-block; margin: auto"> <a href="/produtos">&rarr;</a> </li> This hyperlink can...
asked by 30.05.2017 / 19:35
2
answers

Q. Rails undefined method 'full_name' for #Room: 0x0000000ed6d478 [closed]

My Controller: class RoomsController < ApplicationController before_action :set_room, only: [:show, :edit, :update, :destroy] def nome_completo "#{title}, #{location}" end # GET /rooms # GET /rooms.json def index @roo...
asked by 18.05.2017 / 17:02