Rails Ruby on Rails Forum
how do i implement search by postcode/zipcode using the Geocoder Gem
2
Rails
Building a small rails app that is able to search by postcode(zipcode) and radius, so it responds with contractors that are within that radius/postcode
**schema.rb**
create_table "locations", forc...
Neil Patel replied
Solved
Add to Favorites: using same controller/action and js.erb files for different views
1
Rails
Chris I'm a new subscriber and I'm loving Go Rails. The content is really usefull for real-world applications.
After implementing the "Like" feature in my website, I came across a doubt that keep...
Chris Oliver replied
Solved
How do I upload files larger than 2GB?
1
Rails
I've watched the series on uploading files with Shrine, and I learned a great deal. However, there's still that issue with large files consuming all the resources on the server for a very long tim...
Chris Oliver replied
How do I add a uniqueness validation for a Fantasy League
1
Rails
.
Rails Addict replied
Simpleform association with images!
6
Rails
Hi Chris,
I'm wondering if you could help. I'm currently building a form that'll send out a SMS with twilio, and i'm looking to send details of a vehicle out at the same time, specifically the ima...
Martin McDermid replied
Solved
Bootstrap 4 modal form in rails disables submit button on ajax refresh
1
Rails
I've been struggling with this all day. Please see the link below.
[Bootstrap 4 modal form in rails disables submit button on ajax refresh](https://stackoverflow.com/questions/44489517/bootstrap-...
nynhex replied
Solved
Creating drop down of customers with link to show action
0
Rails
I am transferring an MS Access db to Rails and I need to be able to have a drop down list of customers (last_name, first_name, id) that will allow me to select a customer and generate the customer ...
John Stegman posted
Processing by EquipmentController#show as */*
0
Rails
I'm getting this response when I send a jquery get request to render the show page for a piece of equipment - or any other show page for any object in the rails app for that matter (customer, warra...
John Stegman posted
Call Api and Auto-Reload div.
1
Rails
Hello!
I want to setup a script that calls api from various webistes and retrieve data every n seconds.
I'd like to setup a page where data(numbers) are showing auto-reload constantly.
Which ...
Rodrigo replied
Devise authentication and API
0
Rails
I'm working on JSON REST API for an existing Rails application. Authentication is currently implemented with Devise. What could be potential pros and cons of using cookie-based user sessions for AP...
Alex Musayev posted
Sponsored Post Model?
0
Rails
i want to build a feature where on certain pages I could highlight different posts or jobs. Think of it like a sponsored google ad at the top of the rankings or a sponsored job post.
It should be ...
Ketan Anjaria posted
How Do I Search Against Records Saved In Memory, and Not the Database?
0
Rails
# Problem
I have an event that starts Jan 1, 2017 and repeats every day until Dec 31, 2017. If I search for an event (using [ransack](https://github.com/activerecord-hackery/ransack)) that starts a...
Steve Polito posted
Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html?
1
Rails
I just finished going over Chris's two great railscasts dealing with search. However, I wanted to put my search bar on my navbar so that whenever someone searches the results I will be taken to my...
Omar Khedr replied
Solved
How do I create a Zapier integration with a rails app?
3
Rails
I've read a lot about this and I understand that it involves REST webhooks, but I'm struggling to get it to actual work. I'm not sure how to actually get my app to tell Zapier that something has be...
Alan Vardy replied
Forum Series episodes ... no method error: undefined method
0
Rails
I've been following along the Forum series of episodes, when I try to submit a forum post, I get an error. It seems that the controller has trouble assigning the user id to the current user. I thou...
Miguel posted
Add Students to a class in a HABTM relationship !
0
Rails
I have an app designed that I have classrooms and I want to "enroll" students in the class en mass. For example I want to be able to search by name and either add by an enroll or add button or a c...
John Sanderbeck posted
Finding Users in Group Chat Go Rails Class
1
Rails
Hi guys,
I went through Chris's Go Rails course on Group Chat with Action Cable and learned loads from it. One of the things that I need some help with though is being able to find all the chatroo...
Omar Khedr replied
Solved
Extending Rails flash
2
Rails
I have in *app/lib/action_dispatch/flash/flash_hash.rb* file this code:
class ActionDispatch::Flash::FlashHash
def my_method
#...
end
end
but when I call it in control...
Chris Oliver replied
Multiple Devise Users sharing a dashboard
2
Rails
Hi,
I have currently two Devise models Company and Contractor.
When they sign in I want to redirect them to a dashboard page. At the moment I have a before_action on the dashboard controller that...
Stephen Sizer replied
Two Forms/Two Controllers/One Page: Passing Instance Variables, Routing, and Error Handling
2
Rails
So... I'm having a higher level conceptual gap on how to deal with a scenario in which a form errs out on a page that has two forms relating to two different controllers.
My first knowledge gap...
Michael Becco replied