Use Redis as a way to update a model along a process

2
Databases
Hi all! I'm currently working on a purchase order process that has several steps before the final checkout, pretty standard, adding products in the basket their quantity and finally asking for the ...
Eduard Garcia replied
Solved

Do I need rails-ujs and jquery_ujs?

4
Javascript
I'm bulding a rails 5.1.x app so no jQuery, but I'm usining Bootstrap so I added it in. I was adding in `//= require jquery` and `//= require jquery_ujs`, then noticed that rails 5.1 now ships wit...
Robert Motion replied
Solved

IBM Watson

1
Tips
ANYONE WITH EXPERIENCE INCORPORATING WATSON INTO A RAILS APP? any resources or tutorials you found helpful? (Sorry caps are acting up)
Stan Smith replied

Edit user profile with devise if user signed up with facebook omniauth

3
Rails
Hello. I use 2 gems (gem 'devise' and gem 'omniauth-facebook'). The user is able both to sign_in ou sign_up with facebook. If a User did a regular sign up in the past, he's found by email, and if ...
Ubuntus replied

What is the best way to import node_modules CSS in a Rails 7 Esbuild project?

0
Rails
Rails 7.0 Ruby 3.0.3 Esbuild / Tailwind Question: what is the best way to import the CSS from a node package. After running the yarn add command, the JS loads very easily but as you know adding `im...
Stéphane Paquet posted

How to create new contacts from nested attributes form

7
Rails
I'm building my first semi "real world" rails app (an Open House management app for real estate). I am currently stuck on a "accepts nested attributes" problem. Here are the details... (I've provid...
LucyHills replied
Solved

Using Ruby Service Objects To Refactor Your Rails Code Discussion

21
General
Very nice video Chris! I really like the idea of breaking things out into POROs. I think the next refactoring I would do to this app is making a Subscription class to house the logic for adding and...
hamza-itu replied

How do I add a favicon in rails 6 through packs

2
Rails
How do I add a favicon in rails 6 through packs
Stéphane Paquet replied

Active Storage and Subdomains

3
Rails
I have a simple app for photos and wanted to make it a subdomain of a domain I own and use. It would be https://photos.com This seems to break active storage however. Has anyone else ran into a sim...
Chris Oliver replied
Solved

Is this a good fit for storing JSON in database?

2
General
I've got a Video model that represents a video created by the user. During creation of a video a couple of filters with different options can be applied to the video. Currently only 2 but I'll be a...
Daniel Weaver replied
Solved

How to add Lazy Load Hooks to Rails Plugins Discussion

1
General
Have you used lazy load hooks to extend a gem with some interesting features?

I am getting this "Rails ExecJS::ProgramError in Pages#home"

1
Rails
I am getting this "Rails ExecJS::ProgramError in Pages#home" error in browser, when i go to the root path which is pages#home. I am using windows 10. untill i dont add the bootstrap it works fine b...
cvlewis replied

Deploy Rails guide confusion

2
Rails
Hi, I'm deploying my Rails app, using this website's Deploy Rails guide. Something is not really clear, at the end of the guide, under the section 'Adding The Nginx Host' it says: "Open up /...
Anthony Candaele replied

uncaught syntaxerror unexpected token ' var'

0
Javascript
Hi all, I am getting an error "uncaught syntaxerror unexpected token ' var'" . I'm using this JQuery plugin: https://www.jqueryscript.net/time-clock/Attractive-jQuery-Circular-Countdown-Timer-Plug...
Jim Miller posted

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

Styles not rendering

5
CSS
Hey guys, So I'm following [a tutorial](https://www.youtube.com/watch?v=70Pu_28yvdI&t=4025s), and around the 1 hr mark, he starts adding the styles. When I tried to reproduce it, it would not...
Miguel replied
Solved

How can i Configure my Trix Editor / ActionText field?

2
General
Is there a way to add / delete buttons from the tool bar for action_text? For eg, I'd like to add more semantic header levels (h2-h4).
Christopher replied
Solved

I am getting this "Rails ExecJS::ProgramError in Pages#home"

0
Rails
Hello, I am getting this "Rails ExecJS::ProgramError in Pages#home" error in browser, when i go to the root path which is pages#home. I am using windows 10. untill i dont add the bootstrap it work...
dev posted

encounterd some problems with devise.

2
Ruby
1.when i created a devise model , i saw encrypted_password(column) in schema.rb but in registration form i saw f.input :password ??????? 2.I am getting { PG::NotNullViolation: ERROR: null value in...
sameer replied
Solved

How do I configure GlobalID in a Rails app?

1
Rails
I am working through an elaboration on the recent screencast, using GlobalID to build references to polymorphic associations, but I need to be able to take advantage of the GlobalID.app= method, an...
Walter Davis replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 90,822+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.