Ruby on Rails Community Forum
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
Build a Devise Model in another controller
4
Gems / Libraries
Lets say we have a Company model which accepts_nested_attributes_for User (devise Model)
How do we Save both a company and User model having that a Company has_many :users and a User belongs to a ...
Roman Storm 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
Multi form devise registration setup with admin approval
2
Gems / Libraries
Scenario:
Implement a registration with multiple steps and after all is complete, display "We will approve your application" at the end and wait when an internal admin (only to owners of the app) w...
Roman Storm 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
¿How make I to upload multiple images with refile?
2
General
¿How make I to upload multiple images with refile?
Wouter van den Beld replied
Getting data from one Rails app to another
0
General
I'll try to keep this as brief as possible.
I have a Rails app which is a static codebase and runs on 9 different servers all the same db schema but of course with different values.
I wrote some...
shakycode posted
Handle money in Rails
1
Rails
Hi,
What do you think is the best way to handle money in rails?
At the moment i use a decimal field with a precision if 16 and a scale of 2.
the problem is that we use the comma as a decimal sign...
Chris Oliver replied
Bug in search
1
General
If you search for the word "type", it's causing a 500 error. Just wanted to let you know.
Thanks for the site!
Jerry
Chris Oliver replied
Why are these partials rendering differently?
8
General
I’m doing a thing where I’m rendering table rows:
```
<%= render partial: "choices_table_row", collection: @images, as: :image %>
```
Then, inside that partial:
```
<%= image.name %&...
Chris Zempel replied
API TOKEN DEVISE
7
Gems / Libraries
Hi, I have a question about which gem is better, devise_token_auth or devise_token_authenticatable?. I see that devise_token_auth was update recently while the other not.
Michael Stitt replied