Questions tagged as 'ruby-on-rails'

0
answers

Problem FullCalendar AgendaDay and AgendaWeek view

I am integrating fullcalendar with Rails. I can insert events and see them in the "month" view, but I do not see the week and day views. this is my js: $(document).ready(function(){ $('#calendar').fullCalendar({ monthNames: ['Ener...
asked by 14.03.2018 / 03:20
0
answers

Ruby on Rails + Sybase

I would like to know if I can configure Ruby on Rails in version 5 to be able to work with Sybase (SQLAnywhare) . If someone has succeeded, I would be very grateful if you could help me. Thanks!!     
asked by 07.03.2018 / 00:15
1
answer

how to show an error message in the devise login, rails

Devise puts their respective errors in all their views, except in the login when a user enters your data incorrectly. just redirected me to the same view, without showing an error message     
asked by 02.03.2018 / 20:57
0
answers

Problem finishing cart

I am setting up a shop, it consists of products, users, a cart, using several examples and getting in hand I make some modifications, but I find myself stuck in the following: At the end of the cart I want a button that closes it and allows the...
asked by 26.02.2018 / 15:35
1
answer

Unpermitted parameter, nested forms

I'm trying to make a nested form. The situation is that I want to create events and relate them to a company, this from the event form, I already show the existing companies but at the time of saving, I get an error in the console    Unpermit...
asked by 28.02.2018 / 18:12
0
answers

Syntax error in SQLite with Rails ActiveRecord :: StatementInvalid

Start in the development of a small project to learn Ruby on Rails, I started with a small tutorial in which I do a Resources to insert data to the BD through a form, the point is that I get the following error : ActiveRecord::StatementInvalid...
asked by 27.02.2018 / 17:38
0
answers

Problem with accepts_nested_attributes devise rails 5

I am implementing a user registry with Devise 4.3.0 in Rails 5.1.3. Each user belongs to a Community and if the name of the community is provided in the registry a new community must be created next to the user. The models: class User <...
asked by 07.02.2018 / 12:22
1
answer

How do I run a series of hashes inside an array and verify its contents?

Good afternoon friends of stackoverflow. I have my next question in rails I have the following hash inside an array. @permissions_crud_hash = [:name => name_, :c => c, :r => r, :u => u, :d => d] @permissions_crud.push @perm...
asked by 31.01.2018 / 15:15
0
answers

Read files in rails

How I can manage to read the files in a specified folder taking Dir['C:\cliente\mes\*.pdf'].each do |file| # Lo que quieras hacer end Where I intend the client to be the same as the user who is authenticated and the month the client se...
asked by 23.01.2018 / 03:22
2
answers

Use jquery validate remote rule [Rails 5]

I am willing to use jquery validate to validate that the ID that is entered when creating a person is unique. My form is (I leave only the ID field): <%= form_for @persona, :html => {id: 'form_personas'} do |form| %> <%= form.l...
asked by 29.12.2017 / 00:05