Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Unable to run old ruby n rails project

0
Rails
Hi I am new to ruby n rails. I was working on this old website. This website is hosted on the heroku server. I fixed the code which was required and it didn't install this website on my system yet....
Hemant posted

I was wondering if you ever considered doing a series on salesforce

2
Rails
I see a lot of ROR coders in forums looking for information on how to implement some Ruby or ROR with their salesforce implementations. I was wondering if you ever considered doing a series on t...
Brandon Buteaux replied

CoffeeScript - How to work with coffeescript in ruby on rails?

1
Javascript
I am working with CoffeeScript in Ruby on rails. And I am using http://js2.coffee/ to convert my javascript and jquery into CoffeeScript. We know, Ruby on Rails provides us by default .coffee file...
Chris Oliver replied

Incomplete response received from application when non-ascii character in html

0
Servers
I have an Ubuntu 18.04 server with Nginx and Phusion Passenger (non-Rails app) and it is working for websites with ASCII characters in HTML only. But when I put a non-ascii character to the `index...
Jiri Prochazka posted

How do I switch from 1 database to 1 database per client?

6
Databases
I have a multi-tenancy app where everything is stored in 1 Postgres database. All models have a account_id, so the data a customer can see is based on his account_id. This works perfect, but due to...
Ary Rabelo replied
Solved

How to monitor account progress?

5
General
What is best practice or any screencasts about monitor acccount activities progress as gorails (see the attached image)? https://photos.app.goo.gl/ExWDzWBCMLm77FhA8 Thank you!
Chris Oliver replied

How to insert comma separated values in database from rails active admin form?

0
Rails
The details are here https://stackoverflow.com/questions/53350010/how-to-insert-comma-separated-values-in-rails-active-admin-form
rachit474 posted

i'd like to replace ransack with elasticsearch.

2
General
How would I go about that? There are plenty of elasticsearch gems, I don't know if i need something specific or can use a generic elasticsearch gem. I'm going to use the Bonsai Elasticsearch addo...
Joe Guerra replied

How do I upload files with ActiveStorage and Vue.js?

3
Rails
Hey GoRailers, Stemming from the Rails & Vue.js Trello Clone, I'm looking to add file uploads to a Card model using the new Rails 5.2 ActiveStorage feature. I'm stronger in Rails - previously ...
Abhinav Mathur replied

ActiveStorage trix image before record exist.

3
Rails
Hi, I have a Concept model with description string field. Concept `has_many_attached :images`, I use them to store images that I dragged into trix wysiwyg. Everything works great if Concept alrea...
Chris Oliver replied
Solved

Using Yarn w/Rails 5.1, Getting 404 Error for jquery-ui-dist Images

0
Gems / Libraries
I am using Yarn with Rails 5.1 I have successfully pulled in the css and js for `jquery-ui-dist` ui-icons are returning a 404 error in browser. All other functionality works as expected. applicati...
Garth Gaughan posted

eval issue in Rails view

1
Rails
Any idea why the following code : <% model_set = instance_variable_set("@#{table_name}", eval("#{model_name}.all")) %> produces this runtime error: (eval):1: syntax error, unexpected '.' ...
Mark Nelson replied

Current_account selection

3
General
Hi Guys, In the app I am building, my users have several accounts (though account_users). For each account they can create, view, update... articles I would like to have a global selector at the t...
Stan X replied
Solved

"Controller action should call one model method..." (?)

1
Rails
***Controller action should call one model method other than an initial find or new*** *This inspection warns if a controller action contains more than one model method call, after the initial .fin...
Nelson replied
Solved

How can i upload images directly from controller using Activestorage in Rails 5.2?

0
General
Hello guys. For learning purposes i am developing a MangaReader using Rails. Now i would like to be able to upload multiple chapters at once, so from a given route say "Downloads/chapters", and wit...
JDavid17 posted

Rails changing HTML tag possiton (?)

1
General
Im using AdminLTE 2 to build a small dashboard and everything was working nicely until I started adding links to the controllers on my sidebar. On first loading the dashboard everything works as e...
Nelson replied
Solved

Is a working version of Stripe Payment Master Course available?

4
General
I have bought this course a few days ago and is still struggling to get it to work. This course video is good but seems to be quite outdated. Does anyone have a working copy of the course (especia...
kwiksource replied
Solved

just ran into some strange validation problem.

2
General
Can't remember why I added this to my product model. ``` validates_numericality_of :qty, less_than_or_equal_to: 10, greater_than: 0 ``` but it was causing activerecord errors when I was removing i...
Joe Guerra replied

how do I troubleshoot my app?

3
General
is the only option to include a binding.pry and find out what's going on in my code (thru the console)?
Joe Guerra replied

Parsing a API source, but the JSON souse is not updating (Cache?)

2
General
I have coded a rake file to monitor and fetch data from a website that has this data in JSON format. The following is the actual source of this data https://www.thegazette.co.uk/company/07877158/f...
Jacob Montgomery replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.