Rails Ruby on Rails Forum
Thanks Chris, Just a small request.
0
Rails
Chris, I'm having a somewhat difficult time using and learning React on rails with webpacker and react-router and react-router-dom while using complex routing inside the react router and simult...
ericscottmarquez posted
Can Anyone explain me these ruby codes?
1
Rails
Recently I am started learning ruby on rails. I am doing a project on ruby on rails. In my project there are some code in application.controller.rb . But I am not understanding the meaning of the c...
Sean M replied
Please advise
0
Rails
I have a pdf ,i want to convert it to ruby form with vue.js and aslo writable. Do i have to create all the fields and style and images from start ..?
Please advise. Thank You
Kichu posted
How do I create a pivot table that shows sum of like-items from the primary table and be able to filter the pivot table and appends calculation on the chosen dates?
2
Rails
I have a database table (orders table) that is densely populated with order information as it happens from users with their ids, and I want to get the sum of fees based on different currencies, and...
Chris Oliver replied
Solved
Adding event to date on month calendar
0
Rails
I have the calendar set up and all is working great. Right now I just have a button on the Month calendar page that says add event. The form opens and you need to select the date. I would like to a...
Jeff Wolfram posted
How do I change the actioncable default path?
0
Rails
Hi there,
I have an ecommerce website that sells cables, and as such I'd like to use /cable, /cables etc in my base routes.
Unfortunately activecable uses the '/cable' path by defaul...
Marcus S posted
rbenv: ruby: command not found The `ruby' command exists in these Ruby versions: 2.5.1
0
Rails
I installed ruby 2.5.1 and rail 5.2.1 on CentOS7 . I have an existing rail project which is 3.2.13. Now the existing rail project does not run in my local environment.
I create a new project on rai...
aysha posted
i am doing login and register page getting some error so i need your help?
0
Rails
i am doing login funcnality in my project using bcriypt but evry time i have getting error like "Can't verify CSRF token authenticity." than i am storing value in session than call a...
ravi posted
Braintree cancel subscription
0
Rails
Hi,
So, I implemented the braintree payment processing and everything works perfect. Now the only issue I am having is if I user cancels their subscription through my web application everything w...
Darren Booker posted
Rails Admin with has_many association
1
Rails
Hi all,
We are using rails_admin for manging our data on admin side.
We are facing an issue with has_many association ,** its executing the query to fetch the details and along with it also exec...
Keith Gapol replied
Change Layout based on current URL
1
Rails
Hi all,
let's say I wand to build a whitelabel product.
I want to display different layouts (Logos, CSS, ...) based on the current URL the website was accessed by.
E.G.
a123.mywebsite.com sh...
Chris Oliver replied
Solved
I am interested in embedding a BI visualization tool such as Metabase - What have you done?
0
Rails
I am really interested in embedding Metabase or a similar BI visualization tool for my clients.
My application has multiple daily entries that would be useful for them to disect. I find the tool in...
Keith Gapol posted
Getting undefined Local var method model_resource_name on Rails g Scaffold Model
0
Rails
Running
$ rails g scaffold Poop
returns:
Running via Spring preloader in process 13525
invoke active_record
create db/migrate/20181928173828_create_models.rb
create app/m...
Megazoor posted
Changing currentTime of video in Rails webpacker-react component
0
Rails
So I was able to put a react component in a [sandbox][1] and get it working as I wanted. In isolation it just manages the currentTime of a video. In the main app clicking a button changes the state...
gjaros posted
How do I handle Koala error
2
Rails
After watching [Facebook API and Auth Tokens with Koala](https://gorails.com/episodes/facebook-api-and-auth-tokens-with-koala), I decided to implement it. However, I made a mistake in my logic and...
Alexey replied
taking values from associated values
0
Rails
t1->t2->t3 . taking values of t3 in t1
Abhishek Aravindan posted
Check a user is author of post before edit or delete
2
Rails
Hi all,
What is the best way to check a user (current_user) owns a post before edit or delete?
I have a Post model with a has_one relationship to the User model, user_id is set. The logged in use...
Philip Benton replied
Solved
Searchkick Elasticsearch filtering
0
Rails
Does anyone know of any good tutorials showing how to add filters for searching?
Thanks in advance.
Stephen Sizer posted
Rails 5.2 Credentials
2
Rails
Me again :)
Question about the new credentials in 5.2...
I've upgraded to 5.2 and actually really like credentials but wondering. Is it now the place to store all sensitive information includ...
Philip Benton replied
How do I .... And why should I... event source my application :)
1
Rails
Hi Chris,
Would be nice to see a video about event sourcing, and what approach would you take:
- https://github.com/fhwang/event_sourced_record
- https://github.com/RailsEventStore/rails_event_st...
Chris Oliver replied