Questions tagged [ruby-on-rails

Sign uporlog into customize your list.

Start here for a quick overview of the site

Detailed answers to any questions you might have

Discuss the workings and policies of this site

Learn more about Stack Overflow the company

Learn more about hiring developers or posting ads with us

This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand ourCookie PolicyPrivacy Policy, and ourTerms of Service. Your use of Stack Overflows Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its convention over configuration approach to application development.

Incomplete response from application

Im getting Incomplete response received from application when testing my rails application. It disappears when I refresh the page.. I check my apache error logs and I found this line: [ W 2018-08-…

In Rails how to get the average of the substract of two datetime columns

I need to get the average of updated_at – created_at datetime columns I tried this way but it does not work as I expected: User.average(updated_at – created_at) It is giving this sql query: …

Why does `has_one` in rails require a foreign key?

Consider two tables Foo and Bar and consider models based on them. Now consider a one-to-one relationship between them. Foo contains has_one :bar in its declaration so that were able to access Bar …

rails_api_auth: creating a user record when logging in with facebook/google authentication

I am using the gem rails_api_auth for user authentication in my app. I realized that the user model is not created when the facebook authentication is used to create a login. A discussion of such an …

error: Styling master document from stylesheets defined in HTML Imports is deprecated

I have the deprecated message in Chrome console as [Deprecation] Styling master document from stylesheets defined in HTML Imports is deprecated. Please refer to link for possible …

I can not install ruby-oci8 on Deepin

I use the operating system Deepin. I want to install gem ruby-oci8 for Ruby on Rails. But I get such an error: Building native extensions. This could take a while… ERROR: Error …

Rails/Redux/Devise – Trying to log in user but along the way the value of currentUser becomes HTML string of the document

Im working on a Rails/React/Redux app using Devise for user authentication. Theres something fishy going on somewhere in between my login function and my receiveCurrentUser action where the …

how to configure highmaps of highcharts in ruby on rails?

I am trying to use highmaps in ruby on rails where I am trying to use world countries but I couldnt find the world.js file in highchart lib folder can someone help me how to configure highmaps in …

Rails Routing: Set specific controller action to a different path

I am looking to set the show action for a controller to a specific path (a path without the controller prefix). I know this can be done by controller by doing this resources :items, path: But is …

ActiveRecord or Postgresql Setting Wrong ID When Creating New Record

I am Rails 5.1 with Postgresql 9.6.9 on Heroku free tier. I recently was using a rake task with csv files to try to create a couple of batches or records. I then wanted to test the front end use and …

Heroku: Unable to load Rails schema on Postgres

I have spent days on this and am nearing my deadline. I cant figure out why my db:schema:load is failing on Heroku. Below are the details – any help is much appreciated: heroku run rails db:schema:…

Define specific route to nested resources

Ive been trying rails and I found myself with a very simple problem: I have two models, survivors and locations, and theyre nested resources in routes.rb Rails.application.routes.draw do …

webpack-dev-server re-render page or redirecting after axios POST

Ive got an app in rails5.2 + webpacker + vuejs inside docker containers. The issue is that after doing a axios.put(this.baseUrl + .json, obj) is redirecting or re-redering the page (not quite sure …

I have a Post object in my Rails app that I am trying to write request tests for. I keep getting an ArgumentError: unknown keyword: post error. Here is my request spec: require rails_helper RSpec….

Tyring to add followers to microposts, error: missing parameter microposts

I have been trying to add followers to microposts with the following controller: microposts_controller.rb : def follow @user = current_user set_micropost if er_id != current_user….

Print Button function in Salesforce

Is there any way to sneak attack oozes?

Is Germany paying for vacations for refugees to the refugees home countries?

If we imagine a world that functions without causality, how absurd could it be?

Plausible reason why my time machine can only go back a certain amount of time?

Why dont Democrats and Republicans collude together?

Why would the NATO not defend its members against Russia?

I was inspired to create an anagram puzzle

Is there a word for an object that is no longer kept for its original purpose but instead for sentimental value?

Short story about astronaut who finds Gods experiment

Why do Americans care so much about recommendation letters?

MLCC – Can I use high voltage rated caps for very low voltage scenarios?

Should I try to long-distance parent or will I do more harm than good?

Why would Putin or Russia benefit from a weak EU or weak EU countries?

Is there a formal term for the placement of two symbols next to each other to imply an operation?

Is it safe to store dry food products under the sink?

How should I understand the intrinsic body diode inside a MOSFET?

Was an elderly woman forcibly euthanized in the Netherlands?

What were the early PC applications requiring a hard disk?

Is there a way to make ext-filesystems use less space for themselves in Linux?

Publication: What to do about a high wordcount debut novel?

newest ruby-on-rails questions feed

site design / logo 2018 Stack Exchange Inc; user contributions licensed undercc by-sa 3.0withattribution required.rev2018.8.4.31247