Questions tagged as 'ruby-on-rails'

1
answer

How to execute actions at a given time using Ruby on Rails

In my project I would like to create alerts that run at every given interval or on a certain date, Any way to do it, using as little memory as possible?     
asked by 25.12.2014 / 22:34
3
answers

How to instantiate a model and get its resources by its name in Ruby on Rails

Since I have the abstract class User , and its subclasses Client Employee and Admin , I would like to render screens according to the chosen subclass. Therefore:      users/_form.html.erb : should contain a selection b...
asked by 12.01.2015 / 14:29
1
answer

Problem loading data from a table with angularjs and api rails

My front-end code: var listaDeProdutos = function(){ $http.get("http://localhost:3000/produtos").success(function(data,status){ $scope.listaProdutos = data; }).error(function(data,status){ console.log("error");...
asked by 18.09.2015 / 15:09
1
answer

Relationship in Rails, how to declare in Active Record?

I have a list of shops. Users are not registered in any of them at first. When he (the user) decides to register, a relationship is created between him and the establishment. It would be like Facebook's 'add friend' feature. But here's the quest...
asked by 10.03.2014 / 00:18
1
answer

Error "ActionController :: ParameterMissing", even with form sending parameters

I'm probably letting something go, but I've been trying to find the solution for hours and nowhere. I'm creating a games CRUD. My problem is happening in the games#create action of my controller games . Here is my implementati...
asked by 31.07.2018 / 08:43
2
answers

How to create a Ruby On Rails application (not just an API) and provide some routes like API

Hello, I'm developing a common system with ROR and it has a structure not just an API, it has its views and everything. The question is that I'll also build an API to serve it for a mobile app and when I go about it I'll just find people expl...
asked by 05.10.2018 / 13:23
1
answer

working with decimal {5,2} rails

I created my first API in Rails, and I'm using a simple template with to create a basic Crud, I managed to put my application to work I created the GET method cute little returned 200, only that in my POST it is returning the following error in...
asked by 29.01.2018 / 03:45
1
answer

Login Help [Ruby On Rails - Gem Devise]

I'm using Gem Devise to create a login system. However, my project requires 2 login verification fields instead of just 1. For example, the company has 5 departments, the user has the code 0010 and works in department 1, so for his login he woul...
asked by 17.08.2017 / 13:48
2
answers

Doubt Gem Devise

Hello, I'm using gem devise for a project of its own and a question has arisen, how do I leave just one free route, for example I want all other routes to need login and password minus the main page. I did some research and got to this li...
asked by 23.10.2017 / 02:48
1
answer

Search for officials, multi-forms or single form?

I'm developing an app that should be made available to employees of a particular company, so that coworkers themselves can evaluate one (two, three, etc.) work friends by answering questions (several of them, quantity configured too by the rh se...
asked by 11.03.2017 / 01:24