Skip to main content
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

2 Factor Authentication
Gems / Libraries • Asked by Shaun Fahey
Hey Chris. This would be good for a screencast, well i'd like to see it for sure! https://github.com/tinfoil/devise-two-factor
6
posts

How do I hold Braintree payments for longer than the given escrow duration?
General • Asked by Tharan Raj
I want to create a payment system using Braintree that will only charge the user once a certain condition is met. Lets assume its like freelancer and we need the payment to only go through when the...
5
posts

Performing calculations using scopes
General • Asked by John Munyi
hello , hopefully this isn’t too ambitious but i am hoping there is a way to do simple summation using defined scopes example is i have these scopes : scope :present, -> { where(pre...
11
posts

Pre-populate association for nested form
General • Asked by John Munyi
Hi so here is what i have : class Attendance < ActiveRecord::Base belongs_to :attendance_sheet belongs_to :user end class AttendanceSheet < ActiveRecord::Base...
3
posts

GoRails Screencast to setup Algolia ?
General • Asked by Mathieu Martinot
Hi, Is there any screencast or project with Algolia ? I think it would be great !!
2
posts

Subscribe to the newsletter

Join 22,346+ 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.