Ruby on Rails Community Forum

how do i resolve this error?

2
Ruby
undefined local variable or method `recipe_params' for #<RecipesController:0x00007ffa3c046490> Did you mean? recipe_path def create @recipe = Recipe.new(recipe_params) if @recipe...
Alan Morley replied
Solved

Getting Simple Calendar to show local date and time

5
Rails
I have been using your Simple Calendar gem and it is all working great. The only problem is I can not figure out how to fix the date and time so it will show everything in local date and time. Righ...
Antonio Santoni replied

Enable HTTPS SSL in rails localhost

4
Rails
Good day, i tried to enable https secure connection for my rails application.First of all, set config.force_ssl = true in application.rb only. So, re-started rails server, but there was error: "HTT...
Bilal Abbas replied

Encrypted Credentials in Rails 5.2 with Cloud9

0
Rails
Does anyone know what the [ EDITOR="cloud9 --wait" ] code is for Cloud9 so that I can edit the credentials?
Ryan Carter posted

How to render ssh output

4
Javascript
Might be a basic question, but I can't seem to find any good info elsewhere. Hatchbox has an awesome feature that shows ssh output during deployments and I have a couple of projects that I'd like t...
Quentin Robinson replied

How to structure DB in such a way that we can create attributes dynamically in rails

0
Databases
Hi I am trying to create for example a contact model but currently i only know of for example first name, last name and email but would want to give the user a choice of entering more custom f...
Anand Duddella posted

Connect Rails Application to already existing MySql Database

1
Databases
Hi there, I am new to Rails and really enjoying it. I am converting my php application to a ROR application. The app is using a MySql DB, so I want to connect the ROR application with that alr...
Thomas R. Koll replied

REACT on RAILS - issue with data loading

0
Rails
I am having an issue with data loading after I add a favorite from a search page. It seems that I need to had some kind of fetch to the addFavorite function, so it knows I need to get the updated f...
ME Hoagland posted

amadeus gds , sabree gds

0
General
Hi Chrishave you covered any tutorial on how to integrate flight module api  like amadeus  or  sabree gds in a ruby on rails web app? thanks
abdul-samme posted

Suggestion: A 'Testing Vue components in Rails' episode

1
Javascript
Alternativel you can just answer here "How would you test a Vue component in Rails?"Loving the Vue vids so far, but it would be great to hear your thoughts on testing the front end. Would this be a...
Jake Anderson replied

Update an attribute on belongs_to

3
Rails
Hi all,I have my products and groups set up like so...class Product < ApplicationRecord has_many :product_groups has_many :groups, through: :product_groups endclass Group < ApplicationRec...
Alan Reid replied
Solved

Best practices for self-referential habtm setup?

1
Rails
Basic concept:Patch collecting app. There are issuing entities in the system that issue patches. That model is "issues". In many cases, these are difficult to tell apart. So I want to add a similar...
John Athayde replied

How do I generate dynamic classes?

3
CSS
Is there a way to generate dynamic classes with scss/sass? For example, in my HTML. I want to write div class='mt-10'></div> div class='mt-7'></div> div class='mt-3'></...
Alan Reid replied

What's the state of the art for API authentication?

0
Rails
What are the current community approved standards? JWT? Devise Tokens? What's best practices?
Ketan Anjaria posted

Attach image to summernote and send email

0
Rails
I recently implement email in my rails app. I'm using summernote to create email templates and save it. Everything works fine. I can upload image to the editor and save it to database. But when I s...
Lee Terng Gio posted

Form errors not displaying

3
Rails
In my model for users I am validating the presence of a number of attributes using:validates_presence_of :parent_1_first_name, :parent_1_last_name...The beginning of my form object looks like this:...
Chris Oliver replied
Solved

SQL for search

2
General
Hi Chris,I had a question, solved it, now I'm looking for your feedback. For readability I use `a` in the example below:a = params[:query] Item.where("name ILIKE ? OR tagline ILIKE ? OR details ILI...
Joe Guerra replied
Solved

When to setup associations in Rails db?

0
Databases
I've always wondered if there is a better way to help database query performance in rails by breaking up tables with lots of columns? Any recommendations would be appreciated.Does it make more sens...
Javid Freeman posted

Stripe's new Billing feature explained?

1
Gems / Libraries
Hey Chris!You recently tweeted about Stripe's new billing section: https://twitter.com/excid3/status/981950409509044224You mention that you 'had this idea years ago and never built it.' What exactl...
Chris Oliver replied

I18n access ".title" key with view context in layout

1
Rails
Hi!I try to create a small view helper to manage content for `<title>`.module ApplicationHelper def page_title(options = {}) app_name = Rails.application.class.to_s.split("::").first ...
Nicolas Brousse replied

Learning Ruby on Rails? Join our newsletter.

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