Questions tagged as 'ruby-on-rails'

4
answers

How to make a table responsive using (Twitter) Bootstrap?

I'm working on a web application using Ruby On Rails 4 and much of the interface consists of tables. I would like you to suggest a way to detect the size of the screen in use and, based on this, hide certain columns from each table.     
asked by 11.12.2013 / 17:16
1
answer

How to program in Portuguese in Ruby on Rails?

I would like to know how I can program an application in Ruby on Rails instead of English. There are basically three issues to this: How to change the user interface in Portuguese? (ActiveRecord error messages, dates and times in extensi...
asked by 07.06.2014 / 20:38
2
answers

Association with scope in Ruby on Rails

I have a Ruby on Rails application in which I have licenses, items that can be licensed, and a table that lists the two (What items in what quantity are present in the license?). Analogously to the items in a shopping cart. Some of the items...
asked by 13.12.2013 / 19:46
1
answer

Rails application with offline mode

In a new venture, I need a simple application to stay in place if the internet connection is lost. Can someone explain me how to do this? I had thought about using the HTML5 persistence features in case of connection loss, and somehow I still...
asked by 20.09.2014 / 14:10
2
answers

Retrieve error message via json no Angular

I'm trying to register using Angularjs, but I want to get the validations that are in my model in rails. But I'm having trouble: Covenat (model) Rails validates :name, presence: true Covenat Action Create controller def create @cove...
asked by 14.04.2015 / 18:20
2
answers

What are the advantages and disadvantages of storing session variables in the database?

As of Rails 4.0, the ActiveRecord Session Store , which saved session variables in the database, was deleted by "performance issues." But the functionality continues to work through a gem . Today Rails uses the Cookie Session Store .    A...
asked by 03.11.2014 / 11:52
3
answers

Sending e-mail via a notification button

I would like to know if you have already done or have an example that can link to the following problem: I have a project that has the crud of books and a User controller with their respective views. I made the normal email module as the g...
asked by 05.11.2015 / 00:13
2
answers

How to draw print from a web page using backend rails?

Would it be possible to do this? For example: I point a page to my application , and it holds a image of the indicated page. A print.     
asked by 25.07.2014 / 13:46
1
answer

Doubt Rails Relationship

I'm learning Rails yet, and I'm doubtful if I'm doing it right. I have a Animal Table and a Reproduction table, each animal can have one or more reproductions and each two Animals (Father and Mother) each reproduction can generate one o...
asked by 03.07.2016 / 20:30
1
answer

In Ruby on Rails is the business rule in the model?

In Java the business rule stays in the controller , but I heard a speaker saying that in Ruby on Rails the business rule stays in model . Does anyone confirm this?     
asked by 17.11.2016 / 09:05