General Ruby on Rails Forum
How can I implement back button and bookmark history with turbolinks ajax and rails 4?
3
General
Hi guys!
I have been asking this question everywhere... basically I am building a user dashboard and it load the main div with ajax calls. I wanted to know how can I update the URL when an ajax c...
Chris Oliver replied
Subtract until zero then go to next record
4
General
Hi,
I am looking for this:
for a warehouse application for ordering and keeping stock for machine maintenance .
i have multiple record of items that coming in.
On Monday i received a item 5 ti...
Chris Oliver replied
2Checkout in Rails
3
General
HI Chris,
I'm new to here and new to rails. i saw your screencast about stripe payment gateway, i learn lot from that video.. i need to ask for favor. could you please make another screencast abou...
Shairyar Baig replied
How to I access a position attribute on a join model?
2
General
I have case studies and site models in my database. I have a `has and belongs to many` association set up between them.
## site#show
When on a `site#show` page I want to write the following erb...
Thomas Bush replied
Solved
What is the spinning icon I see on GoRails?
2
General
I see a spinning/loading icon on the right. In addition, I see the loading lightning-like animation right below the address bar, what gem is it? or what library are you using? Thanks.
Tim
Francisco Quinones replied
AASM state based on variable
3
General
Hi,
I am using AASM and i want to set the state based on the total_price of a purchase order.
is this code below the way to go or can it be refactored.
```ruby
before_save :check_budget
event :...
Chris Oliver replied
How do I implement voting in Rails?
2
General
I have an app that has a resource called 'pins'. I want to add upvoting, and possibly downvoting, to the pins, so that I can rank them on the site Sort of like Reddit karma. I was thinking that an ...
karl replied
How do I allow a multi-select to be sortable?
0
General
I have a ton of many-to-many relationships in a CMS I built for work. I am currently using [Select2 3.5.3](http://select2.github.io/select2/) to assign these relationships. This all works well. ...
Thomas Bush posted
Using Microsoft ADFS with Ruby on Rails and Omniauth based on a example cast.
2
General
Building a app that uses ADFS is tricky - maybe making a screencast would be a good idea.
https://craig.io/using-microsoft-adfs-with-ruby-on-rails-and-omniauth/ there is a semi beta solution for ...
Dmitry Kolesnikov replied
What do you think about this ?
4
General
It's been a few months I follow you Chris and I'd like to say **thank you** for all what you've done.
I often watch your episodes and a question got out of my mind, so I have to ask.
What do you ...
Chris Oliver replied
How to display multiple models in the same infinite scroll
2
General
So I have a Post model and a Category model and a User model.
So a user can have many posts and a post can have many categories. So returning a group of posts is very easy, however a post can hav...
Aaron Mills replied
Just sharing: Squash your migrations
7
General
I've gone into problem when my test db is using sqlite and I use postgres in prod
Sqlite doesn't have `inet` attribute like postgres and I went into some old migration that I don't use anymore.
So,...
Chris Oliver replied
Good public national holidays api?
6
General
I am working on a project and I need an api from which to import all the national holidays for a certain country and even for specific regions in that country.
So for example I could import all t...
ryan-cal replied
Advanced Rails books and materials
0
General
Hi guys ... and girls.
I am interested in any advanced rails materials you might know about that are actually good. Most of the stuff is beginner level and something advanced is hard to come by.
...
Andrei Crudu posted
Pundit: How to apply the same policy to nested resources
3
General
working with pundit gem. Is it possible to apply the same rule to nested resources? if show is not allowed in lecture_policy then show in lesson_policy should not be allowed too.
```
Lecture
...
Chris Oliver replied
how scrabe data every day
8
General
how can I schedule to gather data with nokogiri and store it(only what has changed) in a db every morning?
Chris Oliver replied
Is there an easy way to display open or closed based on time of day?
1
General
So, I am making an application that is listing multiple businesses. I am wanting to have a label that displays open or closed for each individual business. Could anyone give me guidance on how to m...
Chris Oliver replied
Switch state of boolean field
3
General
Hi,
on my index page i want to place a button for each record where i can switch the state from active to inactive or from inactive to active.
the button should change without refreshing the page....
Chris Oliver replied
Multitenancy with the Apartment gem Sending email in production
16
General
Hi I did the Multitenancy app works great only problem that im having is on production the app wont send email. On local machine it send it with no problem.
Any help and what info that you need le...
Francisco Quinones replied
Ajax Search Remote True across the site
7
General
I'm building an app in Rails 4.2.x and I'm using Ransack + Geocoder for my searches. Originally I setup a Remote: True search using Ajax in my index action and I can search no problem with the res...
shakycode replied