Questions tagged as 'ruby-on-rails'

1
answer

How to customize tags in ruby on rails?

I have a form: <% form_tag :action => 'validacao' do %> <p> Login: <%= text_field :acesso, :email %></p> <p> Senha: <%= password_field :acesso, :password %></p> <p><%= sub...
asked by 14.05.2015 / 22:34
0
answers

Skroll Stylesheet not working

I have the following code: Gem: gem 'skrollr-rails' Javascript: //= require jquery //= require jquery_ujs //= require turbolinks //= require skrollr //= require skrollr.menu //= require skrollr.stylesheets //= require_tree . $(...
asked by 14.05.2015 / 21:25
1
answer

Error editing user registry with nested_form

I have a problem with an application I made here on the service. I use nested_form together with Devise for a student registration, that is, when registering a student, I already add a user to it in the system, which can have access to notes amo...
asked by 01.12.2014 / 12:46
2
answers

Deploy com Capistrano - Command your

I'm using capistrano to deploy to Amazon. Capistrano + Unicorn + Nginx + Ec2 When I go to deploy: cold, it gives the following error: servers: ["ec2-xx-xxx-xx-xx.sa-east-1.compute.amazonaws.com"] [ec2-xx-xxx-xx-xx.sa-east-1.compute.amaz...
asked by 10.02.2014 / 15:05
1
answer

"SQLite3 :: SQLException: no such table: main.category" running rake db: migrate with Gem Acestry

I'm having trouble using the gem Acestry in the part where it says:    Add index to migration: add_index [table],: ancestry (UP) / remove_index [table],: ancestry I'm creating a method called Category and trying to add Acestry bu...
asked by 05.02.2014 / 17:04
1
answer

Devise: Edit account without having to confirm password

Hello, this is my problem: I have an application (rails 4) with gem 'devise' and gem 'omniauth-facebook' . Who logs in with Facebook at the time of editing the account appears the error "current password can not be blank '... In thi...
asked by 28.06.2014 / 05:37
0
answers

WebService Server in Rails [closed]

Hello, I'm developing a WebServicee server using gem wash_out ( link ). In this my server I will do insert, display, delete and update data (CRUD). It will probably be a Delphi application that will access the WebService and manipulate the data....
asked by 18.06.2014 / 18:43
1
answer

Query to return recurrence values, which have not yet been created in the database

I need to query the database where the records are not yet saved. I'll explain better: In a system that I am developing, the user can register a recurring expense, that is, that will repeat every month / days (according to the user's choice)....
asked by 12.12.2015 / 18:05
1
answer

respond_to show errors with relationships

My question is just about the architecture of how to return the error for view. Here's the example below: class Pessoa < ActiveRecord::Base belongs_to :responsavel, class_name: 'Pessoa', foreign_key: 'responsavel_id' end...
asked by 26.02.2014 / 02:20
0
answers

Ruby AdWords API Returning AuthenticationError.OAUTH_TOKEN_HEADER_INVALID

I'm using: devise omniauth omniauth-google-oauth2 google-adwords-api I get the token from the oauth callback: class OmniauthCallbacksController < Devise::OmniauthCallbacksController def google_oauth2 session[:token] = req...
asked by 09.01.2015 / 17:56