Skip to main content
Multitenancy with the Apartment gem
Gems / Libraries Solved • Asked by Francisco Quinones
Hi Chris Im trying to apply the Multitenancy to a exiting app. at the moment the tenant get create. how can I use the exiting that to be one of the tenant. When I enter with a exiting user to the t...
6
posts

Opening and closing a window to a new controller/view from a different controller/view
General • Asked by shakycode
I'm maintaining an app and need to add a pop-up window or modal that launches from the current view but loads a separate controller/view. So far I have a link_to setup to open the controller/view ...
1
post

Rails Console
Rails • Asked by Chris Ma
Hi all, This might be a retarded question but how do I access things other than Models in rails console, such as Controller methods, engines etc.? I wouldn't mind seeing a video dedicated to con...
3
posts

Some good ways of seeding data in my app?
Databases • Asked by karl
I need some seed data for my app. How do I seed Devise users, and always as images for Paperclip?
3
posts

subscribe if old one month user
General Solved • Asked by Sean M
Hey Chris, Just wanted to let you know, that I couldn't subscribe from my profile. I'm used to be subscribed to onemonth, so I got the free half a year subscription to gorails. That has expired ...
2
posts

I'm lost and can't find the way out
Rails Solved • Asked by Andrew Fomera
So I'm in the middle of this project and I thought I could figure it out on my own, but it appears I am in over my head here. So any advice/help you can give me would be great. Basically I'm tr...
19
posts

How do I use pushstate to create infinite scrolling blog effect in a standard rails app?
General • Asked by Thomas Bush
How do I use pushstate in a simple rails blog to create the effect that larger new sites are currently using: as you scroll to the bottom of the page, the next article seamlessly is loaded, the url...
3
posts

How would you improve these db's and associations
Databases • Asked by Shaun Fahey
Database Structure Hello people. I have my first proper paid Rails project to start soon, so I’ve been thinking about the database and the associations. The two links below are the databases...
3
posts

Non-rails, block ip address from nginx without logging to error.log?
Servers • Asked by Brian Schwartz
Posted this to serverfault too, but I'm still stuck: I have a server that keeps trying to brute force hack via xml-rpc post on a wordpress site (I know, I know). I've blocked the ip address in ...
5
posts

Style a drop down menu with css
CSS • Asked by jm castel
I watched the tuto on making notifications but i can't set the css to display the notifs properly. Could someone show me an exemple of his css ? Thanks
4
posts

How to generate PDF based on search using prawn in ruby on rails
Gems / Libraries • Asked by Francisco Quinones
So Chris im using prawn pdf in my app. Now im adding some search form to filter by date range. All works fine and I get my filter table on my index. my problem is with prawn that wont hold the fi...
2
posts

Reoccurring events with simple_calendar and ice_cube
General • Asked by Dan Tappin
I am developing a Rails app that has a `Task` model. It's like any basic task tracking system where you can set some attributes (name, activity, status, priority etc.) and a due date. For my syst...
3
posts

Single sign in Devise STI
Gems / Libraries • Asked by John Munyi
Hey there I have an STI on devise model which is working but there is an issue with how to manage what menus to show when different types of users are logged in here is my code user.rb ...
1
post

Using Pundit with ActiveAdmin
Gems / Libraries • Asked by alexander kehaya
Hey, I'm using pundit with active admin and getting this error message Pundit::AuthorizationNotPerformedError in ActiveAdmin::Devise::SessionsController#new In the pundit video you show u...
15
posts

Paperclip - Watermarking for dynamic image sizes
Gems / Libraries • Asked by Michael Victor
I'm looking to add watermarks to all images that are uploaded to my application. They can be of several sizes and this is where I'm running into trouble. This is my watermark processor: m...
1
post

Simple Form - Make label appear after input
Gems / Libraries • Asked by Michael Victor
I have a simple form tag as given below: = f.input :email, required: true, input_html: {class: 'md-input'}, wrapper_html: {class: 'md-form-group float-lable'} and it generates the below HTML ...
3
posts

Devise models and Single table inheritance and custom class methods
Gems / Libraries • Asked by John Munyi
Hello there I am in a little fix and cant figure out whats going in, i am attempting to have a devise model User share via STI with 2 other sub-classes . I am able to populate both classes with dat...
5
posts

How do i collect the users emails into mandrill ?
Gems / Libraries • Asked by Ahmed Althani
I have watched the mandrill tutorial. I just have a quick question. How can i link the list on mandrill or any email service with the users emails (when the user signs up ) and update the list wh...
3
posts

Use datatables like handsontable
General • Asked by Wouter van den Beld
Hi, I would love to see a episode that explains the use of json/ajax and load and save back data back to the server. For example i want to use handsontable (http://handsontable.com/) but i cant ...
2
posts

Who is using Hashicorp Otto?
General • Asked by Jay Killeen
Hi All, I've recently gotten back into my rails development after some Salesforce related projects at my work. In that time I had to format my laptop from Ubuntu to Windows 10. I've been stru...
8
posts

Subscribe to the newsletter

Join 27,623+ 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.