Rails Ruby on Rails Forum
How can I use Rails Each Array and In-page search to show/hide div content
2
Rails
I'm trying to set up a simple search bar to show/hide content in my rails app. Specifically, trying to allow someone to search for a specific user via username in my chatroom which are being shown ...
Omar Khedr replied
Solved
Link to a method in my model
1
Rails
Hi
I have a method called Search(search) in my model which is called from my controller. This works fine when I enter a search term in an input box in my view.
What I now want to do is create a ...
Simon P replied
Solved
How to redirect batch of urls from routes.rb
1
Rails
I have an issue here and struggling with it for hours.
For SEO purpose, I have to redirect (301) something like 200 urls for now, maybe more later, maybe less.
I want to have easy access to it. So ...
Chris Oliver replied
Using will_paginate and .limit(x) together.
6
Rails
Hi
It appears that will_paginate and .limit(x) will not work together. So this didn't work:
(I am trying to get 150 most recent records and paginate them)
@articles = Article.where.not(site_i...
Simon P replied
Solved
Trying to emulate `belongs_to trough` using `has_one trough` but having problems
0
Rails
Imagine a travel website where you have `HotelOwner`s and `Tourist`s. When they start a conversation, the app creates a join model named `Conversation` using has_many through. It's a classic many t...
TL posted
What is the best way to create an unsubscribe link in a Rails email mailer
2
Rails
Hi
As the question says.
Thanks
Simon
Simon P replied
Fixing Bundler could not find compatible versions gem "rack"
2
Rails
Hi everyone,
I was working through Chris refile gem course and trying to implement it into my app. When I tried to do bundle install, I kept running into an error message in my console saying that ...
Omar Khedr replied
Form ajax upload to s3
0
Rails
Hi!, So I have a form that was using ajax to post the data to the server, then I add it a img file and the process was taking to long so now I want to do direct upload to s3.
https://gist.github.c...
Francisco Quinones posted
Integrating a blog within a Rails app.
2
Rails
Hey all!
Any suggestions on the better blogging templates to integrate in a rails app? This is for a client - who lacks dev skills, so something easy for them to update posts etc from the backend....
John Magee replied
How do I tackle this 28-line scope?
2
Rails
Context: I'm working on a startup MVP that's received very little love in the way of refactoring. This has been the most complex codebase I've had to grapple with, and its been tons of fun figuring...
Chris Zempel replied
How do I prepopulate table data for a new registered user?
2
Rails
I'm wondering how would one go about prepopulating certain data table for a new user? Let's say I have a table with posts and a table with likes, and when new a user registers I'd like to make it s...
Alex R replied
Solved
PDF Receipts not working
4
Rails
I just finished working through the pdf receipts video but can't get it to work. I have the webhook working and all charges are displayed properly, but the link to the pdf 404's.
Can you see where...
Adrian DeGus replied
Solved
How to deploy in Google App Engine?
1
Rails
Hi there Guys!
So its possible to get a video tutorial on how to deploy a Rails App in GAP?
Chris Oliver replied
Stripe - Question about canceling accounts
2
Rails
I just finished following the screencasts on setting up Stripe, everything went well!
I have my app setup to cancel accounts `:at_period_end` so that subscribers can continue accessing content thr...
Adrian DeGus replied
From where to start for developing a Shopify application?
1
Rails
Hello,
First of all thank you Chris for supporting students like me with so limited budget! I'm really happy to be part of this community.
I'm a Java programmer, and I know basics of Ruby, and re...
Chris Oliver replied
Limiting filesize upload when using Shrine + AWS S3
2
Rails
I built my file upload using Chris's guide (https://gorails.com/series/direct-uploads-to-amazon-s3), and i'm trying to figure out a way to increase limit the upload size of each file. Right now it ...
Masud Hossain replied
Is there less opportunity for junior developers/1st job seekers in Rails?
0
Rails
It seems that almost all of the Ruby on Rails job postings are for senior developers, usually with 5+ years experience, although I am aware of the caveat that one should not let that stop them from...
Rails Addict posted
how do i display search results
1
Rails
Following on from my prev question regarding implementing search using the geocoder gem [https://gorails.com/forum/how-do-i-implement-search-by-postcode-zipcode-using-the-geocoder-gem]
I have imp...
Neil Patel replied
Solved
Advice on implementing a template system in Rails
5
Rails
I am currently building a Rails app that allows users to create and manage projects. Within these projects are different groups and tasks which are of course associated models belonging to the proj...
inopinatus replied
Solved
Turbolinks Not Playing Nicely With Cocoon and Stripe
2
Rails
# Problem
I am getting the following console error on a form using `cocoon`. However, on page refresh the error is gone and the form works.
```
js.stripe.com/:1 Failed to execute 'postMessage' on ...
Ken replied