Skip to main content
How do I populate form control with data from database ? the RoR way..
Rails • Asked by Nahwin Rajan
Hi there, this is very basic thing but How do I populate controls in my form with data from database ? For example let say I want to create a Invoice / Order of items from my product list. I...
4
posts

How do I display a list of Favorited Posts from forum on the User Profile page?
Rails Solved • Asked by Rob Sturcke
I'm creating a forum and am trying to display a list of posts that have been **favorited** by the current user in the ```users/show.html.erb``` view. When I favorite a post however, then go to m...
6
posts

Send an Email On a Date Specified in a Database Column
Rails • Asked by Liz Bayardelle
I have what I think is a working setup to send emails via `Delayed_Job`. However, I haven't received my test email and it isn't practical to wait for more to happen with a delay of days. I need t...
2
posts

Update and validate multiple entries
Rails Solved • Asked by Andre Zimpel
Hi friends I got a kinda tricky problem which I usually would do through a nested form, but since I'm writing an API which has some tricky associations I need something custom (I guess): Firs...
6
posts

Searchkick search_data not working
Gems / Libraries • Asked by Andrew Quinn
I'm playing around with elasticsearch and searchkick, but I can't seem to get search_data working. Searchkick seems to ignore it all together. If I only put one attribute in, it still searches o...
5
posts

Multiple select for CSV Export
Rails Solved • Asked by Sascha M.
Hi there, My users can create a report record which is basically a scaffolded model "**Report**" with controller and views. The users can use this model to create records that a CSV method is us...
4
posts

How do I make an app to get a video by url from youtube download it / process it/ and uploaded to a local db?
Gems / Libraries Solved • Asked by emil mircea
I liked the shrine tutorials and would like to use that as an upload to local disk solution. I also found a gem called youtube-dl (https://github.com/layer8x/youtube-dl.rb) to help download from Y...
3
posts

How do I publish an RSS feed from my rails app?
Rails Solved • Asked by Stan Smith
I have a simple blog setup with a posts model. Is there a gem that can publish a feed or should I create thus from scratch?
3
posts

Rails csv import with associations
Rails Solved • Asked by Ryan Blakely
I am building a rails application that associates posts with many different categories. For example, I have a Post and need to be able to assign it to the categories Sports, News and Science throug...
9
posts

Hi, my name is...
General • Asked by Ryan Blakely
Ryan Blakely. I'm a PHX, Arizona based Rails developer. I started learning Rails about 2 years ago during my senior year of college at Arizona State University. After graduating and working for a y...
5
posts

store_accessor with jsonb nesting
Rails Solved • Asked by Francisco Quinones
So Im building a user permits column with jsonb. jsonb column ```permits:{ bar_permit: { key1: [], key2: "Bar", key3: false, key4: ...
4
posts

On Go Rails do you use any background workers for Stripe processing?
General • Asked by Lance Williams
I'm trying to figure out if I should move some of the stripe payment processing and invoice lookups etc.. to background jobs. Any suggestions for a simple membership type site? Here are a coupl...
1
post

How do i add a ":unique => true" to an already existing reference?
Rails Solved • Asked by Alan Reid
I have my DB already set up, and it references another table. I need to add in `:unique => true` so i don't get duplicates. I cant however drop the table and start over as there are items in the...
3
posts

Video request: react-rails + caching
Site Feedback • Asked by Megan
idk if this is the best place to include screencast requests... Would love to see advance tutorials on using react with rails. A specific one would be caching best practices in react.
3
posts

How do I use carrierwave and a custom process to upload an unzipped folder to s3
Gems / Libraries Solved • Asked by Thomas Bush
## Goal - I take accept a zip file containing some config files as well as 2 folders filled with images - Unzip the folder - run a method to standardize the sub folder and image names as well as...
5
posts

Devise Filter chain halted as :require_no_authentication rendered or redirected
Gems / Libraries • Asked by shakycode
I have an app with Rails 3.2.20 and Devise 2.1.2 (Yes I know it's old) and there are random occasions where a user will trigger a URL i.e. `site.com/calls` and I will receive an error in the `produ...
15
posts

why .limit not working with find_by
Rails • Asked by TG
am trying to retrieve date with @category = Category.find_by(slug: params[:slug]).limit(5) but i get undefine method .limit
7
posts

Facebook Profile Image & Data using Devise in Rails
Gems / Libraries Solved • Asked by Omar Khedr
I'm just starting to learn Rails so please forgive the dumb question. In my web app, I was able to set up devise successfully and then link it Facebook using Omni-auth gem. However, two things occu...
2
posts

How do I configure paperclip with capistrano?
Servers Solved • Asked by Cristian Georgescu
Hi, I deployed using the "Deploy Ruby on Rails" guide. However I paperclip attachments no longer work in production. Got the below error: Failed to load resource: the server responded with a...
8
posts

[Performance] - Can I Still Refactor This Code?
Rails • Asked by Zulhilmi Zainudin
I'm building an API based Rails app and I've one endpoint to list down all active users account numbers and gold balance inside that account. The requirement is: 1. Take all active users (kyc...
5
posts

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.