Dir.exist? does not work as expected

I have an issue while checking if a directory exists. I'm writing a small Ruby app that performs a svn checkout from a repository, and then looks in the working copy to see if a certain directory exists. I have a SVNClient class that performs the...
more »

2017-01-12 15:01 (1) Answers

Can't install Bundler

Please don't mark this as a duplicate without telling me which question you think will help! Something has happened to my system that messed with the OpenSSL such that it can no longer connect to any of the gems. The current problem is that gem ins...
more »

2017-01-12 05:01 (1) Answers

Why does this link not work on iPhone?

Go to this site here, and click on 'Subscribe' in the navigation at the top. Then click on the 'Subscribe Now' button. It should redirect you to the registration page. On an iPhone in both Safari and Chrome it doesn't. It basically just redirects...
more »

2017-01-11 20:01 (2) Answers

Rails: too many methods in model

TL;DR: I don't know how organise my logic domain classes. I have the model "Application", this model is in the "core" of the App and is the way I "enter" and operate over other models like: @application = Application.find(params[:application_id]) ...
more »

2017-01-11 02:01 (3) Answers

Carrier Wave mini_magick_processing error

I am trying to upload an image in my signup form using carrierwave gem but getting this error: Avatar translation missing: en.errors.messages.mini_magick_processing_error This is my form: <%= form_for @user do |f| %> <%= f.la...
more »

2017-01-10 21:01 (0) Answers

intercom-rails gem exclude user does not work

I need to skip Admin activities. In config/initializers/intercom.rb I have: config.company.current = Proc.new { current_organizer } config.user.exclude_if = Proc.new { |user| user.class.name == 'Admin' } It logs admin activity in comp...
more »

2017-01-10 13:01 (0) Answers

Rails Paperclip upload button not working

I try to integrate Paperclip to my Web App. The problem is, that the upload button is not working. I can choose a file, enter a title etc. but when i hit on upload nothing happens. when i remove in the _form.html.erb file the <%= form_for @vide...
more »

2017-01-10 11:01 (1) Answers

Impact Analysis in Ruby on Rails

Impact analysis for a ruby on rails application. Is it possible? And is there tools which can make this achievable? I have a really big application. I want to check the impact of the changes made in application, so that am aware of the bugs which can...
more »

2017-01-10 10:01 (0) Answers

What does f.object do in the Rails form builder?

I am learning Rails 5.0 from a tutorial, and in that tutorial it uses f.object, which I am unfamiliar with. The f.object is being passed into ERb, into a method that handles error processing. I know that f is the object/instance of a record being pa...
more »

2017-01-09 22:01 (3) Answers

rails config gem issue with template rendering

I'm using rails config gem to set feature flags. Settings.yml enable_grading: <%= 'true' == ENV['ENABLE_GRADING'] %> When I try to hide/show some part of the template based on the feature flag, it responds inconsistently. <% if Settings...
more »

2017-01-09 05:01 (0) Answers

Add custom directive for strftime in ruby

I would like to add a %custom directive to strfime that will translate months to the code used in some financial/trading reports January => F February => G March => H April => J May => K June => M July => N August => Q Septem...
more »

2017-01-08 21:01 (1) Answers

best practices for authentication systems in rails

What are the industry standards or best practices for developing authtentication systems in rails, is it to develop custom authentication systems or is it to use gems like devise, clearance, authlogic? The authentication system I am looking to build ...
more »

2017-01-08 18:01 (2) Answers

Not sure how this code reads

I'm browsing github looking at cool code, but don't understand what this code does: I understand that there are 2 belongs_to associations, but I don't understand what the 'self.request' method means and what it does. Also, isn't 'transaction' meant...
more »

2017-01-08 08:01 (2) Answers

Rails--Build a filter on top of geocoder search

I'm currently using geocoder to filter images, On top of that, I want to add a category filter(not the dropdown select type, but each category gets displayed like a button and when I click it, its category_id get selected). So imagine a side bar th...
more »

2017-01-06 17:01 (1) Answers

rails generate directory recursively

I am creating a gem which generates directory from template, in my template folder there is one folder which contains files and folder both. But when I tried to generate whole folder then it generates only files not internal folder. Here you go: In...
more »

2017-01-06 11:01 (0) Answers

Trying to deploy on heroku but encounter error

I am fresh with ruby on rails and I've been trying to deploy to heroku using git but I encounter error. My working environment is windows but using WSL to run ruby code in a ubuntu environment. This is the content my gem file source 'https://rubyg...
more »

2017-01-06 08:01 (1) Answers