hit

1
Rails
xx
ff replied
Solved

rails new demo without getting a error message?

1
Rails
I did the basic installtion from a book I'm reading and i get the following error message when i type in the command `rails new demo` in my terminal. ``` Michaels-MacBook-Air:~ michaeljonathanamay...
Michael Amay replied

Any way to reduce complexity passing JSON to Vue.js component?

0
Rails
Hi, I'm trying to figure out a way to reduce the complexity of passing a JSON to a Vue.js component. Currently I've got something like this placed on a model scope, ``` scope :to_vue, -> (id)...
Eduard Garcia posted

how can i access boolean value to other controller in rails

0
Rails
i have ProjectSite model and ManagerRemark model related to many to one association. my MangerRemark model remark string field and decision boolean value true and false. i want to access that boole...
anuj posted

How do you figure out what and how to load the css/scss assets with Webpacker

0
Rails
For Bootstrap you added to `application.scss `(I may have named my folder differently: ``` import "bootstrap" import 'bootstrap/dist/js/bootstrap' ``` and ``` @import '../css/bootstrap_custom'; @i...
Greg S posted

Error installing gem pg on Mac with Postgress.app

0
Rails
The pg gem will not install. Getting: ``` ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/pg-1.1.4/ext /System/Libra...
John Petit posted

How to save DOM elements in the database?

2
Rails
Hi I'm working on my very first "real" Rails project, and it might be a bit to advanced for a newbie like me. But here we go (sorry for the long and confusing rumble). **Goal:** I want to save the...
Magnus von Bromsen replied

Problem in uninstalling rails and Ruby from ubuntu 16.

0
Rails
Is there any way to uninstall rails 6.0.1 from ubuntu 16 and ruby as well because i have installed ruby through rbenv. Please suggest any standard way to uninstall it. i am beginner in rails.
Dilip posted

Use the helper methods that are declared in controller and has default params in view spec ?

1
Rails
Here's the problem: I have a Controller (say ExampleController) which has a method "sort_column" and it has the following code : Example.column_names.include?(params[:sort]) ? params[:sort] : 'titl...
Chris Oliver replied

Why doesn't my app show on my browser when running locally?

0
Rails
I'm new to rails and trying to display a very simple app from codecademy which results in this error on my browser: PagesController#welcome is missing a template for request formats: text/html NO...
vkuz91 posted

How do I get avatar.variant(size: "") to work using aws on production?

0
Rails
I can't get variant(size: "") to work while using a cloud provider in production. I need to user.avatar.service_url.split("?").first to get the right path for the img but when I do this, I can't u...
Luis Daniel Fonseca posted

Skip Stripe checkout for user with certain conditions

1
Rails
Any ideas on how one would go about adding [this](https://gorails.com/episodes/referral-program-from-scratch?autoplay=1) to stripe checkout flow? I would like the referree to have a free post inste...
Chris Oliver replied

How can I add third party plugin in rails 6?

0
Rails
My application.html.erb looks like this. I just want to remove all cloudfare(cdnjs) external link from application.html.erb. Instead of that I just want to use it in application.js . Because I dont...
Siva Ganesh posted

Devise on Heroku

0
Rails
Hello, I have been implementing device JWT with rails 6.0 API . I have used this callback to protect from fogery requests, On the applicationController ``` protect_from_forgery unless: -> { requ...
Moses Gathuku posted
Solved

How do construct remember me after login ?

0
Rails
In my login-in form in have a params 'remember me' . How do i read its value in controller . biggest problem i m facing right now. ``` Log In <%= form_with url: sessions_path...
Minimalstics posted

Markdown with image and aws support

0
Rails
Hi, I have integrated markdown and active storage in my rails application. Although I am sttruggling to upload markdown images to aws s3. Any help would be appreciated. Shabbir
shabbir saifee posted

Thoughts on adding non-standard REST actions to a resource?

4
Rails
I have a `milestone` resouce that can be activated/deactivated as well as completed/reopened. Rails pushes the standard 7 actions in your controllers: index, new, create, show, edit, update, destr...
Dan LeGrand replied
Solved

Sub-site Authentication? (FAQ / KB / Helpdesk etc.)

12
Rails
Does anyone have a suggestion to integrate your main Devise based Rails app with a secondary related site? In my example I have a standard Rails app behind authentication with Devise. I want to a...
Dan Tappin replied

Help with service objects

0
Rails
Hey guys in my project i need to refactoring my code. I using service objects but i need to help to send params from services to controller. I have nested_atribbutes and i need to help
Victor Giraldes posted

Seeking Ruby on Rails Developers

0
Rails
I am seeking a Ruby on Rails developer to join a leading e-commerce client on either a permanent or contract basis. Our client is leading the way with exclusive partnerships and introducing ble...
stephen hamilton posted

Learning Ruby on Rails? Join our newsletter.

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