I'm using a *.js.erb in my Rails-App, which reacts to a clicked Link. But when I render my page, by getting there via a link_to, I have to refresh the Page, to
I have a few items that are accessible just fine in development mode within the /public directory of my app: favicon.ico, robots.txt. I can view these in devel
Currently, I am grabbing titles using the following method: title = html_response[/<title[^>]*>(.*?)<\/title>/,1] This does a great job at catch
Im using the code below to make header images appear randomly in a app I´m making. I want the images to span the whole width of the screen but somehow it
I have a table named Nodes. Each node belongs to one father of the same table, and has one child on the same table too. This is the Node model: class Node <
I recently switched to Rails 4 and the security requirements no longer seem to allow the use of regular expressions in the style of /^..$/. The error states th
What is the best way to find records with duplicate values across multiple columns using Postgres, and Activerecord? I found this solution here: User.find(:al
After installing the devise gem to create users on my web app, my changes are not appearing on the live app. I believe I am running the correct code in termina
Is there a way to use reactjs along with stimulusjs simultaneously in a an existing rails project? This is not a coding specific question rather an architectura
I am trying to deploy a new version of my app to heroku and although running it locally works, I can't see any change after I do the following: git push heroku
I am using devise-jwt gem, from what I see on the wrapped gem https://github.com/waiting-for-dev/warden-jwt_auth there is a static method revoke_jwt(payload, us
I currently have this line of code: =select_tag :resource_id, options_for_select( Resource.find(:all, :conditions => "resourcetype = 'data-sheets' &&
I am working on a work PC which has a windows OS and I'm used to using ubuntu OS for rails development. I installed everything properly with wsl as ubuntu on VS
I am a developing a Ruby On Rails app using Rails 4.2.6. I am using Turbolinks alongside jquery.turbolinks (sorry I could'nt post the links to those elements as
I'm trying to deploy my Rails5 app to AWS EC2 instance using Capistrano3. However when it comes to assets compile, it fails without logging any reasons. Where
enter image description here Upgraded rails from 6.0.3 to 6.1.5 but having issues with query methods like eager_load and references. class Note < Application
This is what i have setup in setup_email.rb file, if Rails.env.production? ActionMailer::Base.smtp_settings = { :address => "smtp.gmail
Imagine I have this STI table called living things with these such subclasses: class LivingThing < ActiveRecord::Base end class Animal < LivingThing end
I have this migration file 20180226063342_add_bpm_to_songs.rb class AddBpmToSongs < ActiveRecord::Migration[5.1] def change .. end end and this in
I am facing a wired issue, factoryBot is creating a record in Db, but when capybara try to access it, there is no record in HTML. I tried debugging with "byebu