Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Ruby new

1
Ruby
Hi, I'm new to ruby and I need your help.
Chris Oliver replied

rails binary tree and referral

0
General
Hi, i have an application and that is working clear but i wanna add multi level marketing binary tree module to my application. i created binarytree page and also created add_to_column to members ...
mustafa kahveci posted

Rails::HTML Sanitizer: mimic CKEDITOR allowedContent configuration, by specifying attributes and CSS classes for each tag

0
General
Let's say that I want to sanitize user generated HTML written by CKEDITOR or something similar. CKEDITOR has a really nice hash-like syntax for allowing content: ``` config.allowedContent = { ...
TL posted

Auto saving forms as they type.

2
Javascript
Any good tips on how to auto save the form while user is typing? For example: Post is a model. I press create new post to open up a form. While I am typing a post field—it auto saves the post pr...
Anthony Lee replied

Reputation Gems - Merit

0
Gems / Libraries
I was looking at reputation gems, and it seems [Merit](https://rubygems.org/gems/merit) could be a good choice. Quick Question though, can you add this to existing User models? Or does it need t...
Simon Cooper posted

Is it better to switch from scratch to Devise ?

0
Rails
Hi everyone, I'm working on a project since some time now and made up some authentication system from scratch thanks to Michael Hartl among other resources... I was just thinking about the idea to...
Damian Nelwep posted

Table join and data retrieve

0
Rails
how can I link user model table with another model table and based on current_user login I want to retrieve data from second table
Deepika posted

Design a store credit schema

0
Databases
Hi, I was wondering if anyone has some experience building a store credit system into a market place style app. Eg: Users could purchase 100USD in adavance and receive 120USD in store credits as in...
gafemoyano posted

NameError (undefined local variable or method `fetch_records' for ....

3
Databases
Hi, I'm getting this wierd error. ``` NameError (undefined local variable or method `fetch_records' for #): app/controllers/admin_controller.rb:69:in `block (2 levels) in comments' app/controller...
Victor Nizeyimana replied
Solved

NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):

4
Ruby
I have this error: ```NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):```
Victor Nizeyimana replied
Solved

Rails Button_tag not submitting edit form, but submits new form

11
Rails
I am using the following to submit my form when creating a product. ``` <%= button_tag("Create", type: "submit", form: 'new_product') %> ``` However, the issue I am facing is that when I tr...
Alan Reid replied
Solved

Rails 5- jQuery works in local production(rails s -e production) but not on Heroku

1
General
I can run jQuery on local production doing `rails s -e production` but when the same project is deployed to Heroku, jQuery doesn't work and I get an error in the console that says > "Uncaught R...
Chris Oliver replied

FATAL error on hitting Rails API

1
Rails
Hi, I am beginner in ruby/rails. I have a rails api which when curled directly works as excpected. But, when invoked through vent(wrapper on kafka queue) returns 4xx error. I have verified that ...
Srilekha Thirumalaisamy replied

ActionController::InvalidAuthenticityToken error

0
Rails
Hello, I'm getting ActionController::InvalidAuthenticityToken error, even after sending csrf token in the post request. On which cases, do i get this error can anyone please enlighten me. Thanks.
ravitej177 posted

ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):

3
Rails
How to resolve this issue: `ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):`
Alan Reid replied
Solved

Any chance we can get a video on how to use a js cropper and using active storage

0
General
There really dosent seem to me good documentation any where on how to crop images with active storage, I know it can be done just seems pretty complex and would be a cool video
Corey Gibson posted

Upgrade to Mojave on Mac OS

5
Rails
Hi Chris - I am running Sierra (not high Sierra) on my fairly new Mac (summer 2017). I need to upgrade to Mojave and am afraid I will break my ruby/rails dev environment (like I did when I upgraded...
Chris Oliver replied

My app keeps crashing

0
General
Hello all, I am new to rails and was hoping someone could help me out. I built an app and at first it said it couldnt find Ruby so I reinstalled it, then it said compiling error so I updated the b...
donaldlund2010 posted

How do we show dynamic data in .erb file like from a json file?

0
Rails
I have a view file index.html.erb in my view folder and there I am showing some data in the form of Table(bootstrap table) and this is a static table so I had to write so many lines of HTML for thi...
theshashiverma posted

Separate Asset Pipeline

1
Rails
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different styles, one...
Nelson replied
Solved

Learning Ruby on Rails? Join our newsletter.

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