search for: klabnik

Displaying 15 results from an estimated 15 matches for "klabnik".

Did you mean: karnik
2010 Jan 31
3
Removing scaffold?
Hi, I just created a new scaffold in my app using the nifty-scaffold plugin. However, I messed up the syntax and forgot the model name, so it ended up being called "Title:string". I now can''t run any tasks from the terminal as I get the following error: vendor/rails/activesupport/lib/active_support/inflector.rb:352:in `const_defined?'': wrong constant name
2013 Jul 22
1
Dependency upon raised error/exception messages.
Hey everyone, first of all, thank you for the tremendous work and effort on making Rails more awesome every day. I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told me to bring the discussion here, as it''s more appropriate. The thing is, there is some amount of logic scattered around Rails (and its tests) that depends upon error/exception messages, instead of some attributes on the errors/exceptions themselves. As Brian Shirai pointed out [2]...
2012 Nov 29
3
Proposal: faragment cache with :if / :unless conditions
Hi, I''m wondering if it would be a good idea to have fragment cache to allow options :if / :unless to determine whether or not to actually perform caching on the given block. It would actually be a good idea in my opinion right now, since I''m working on a piece of code that would benefit by this feature. The scenario is the following: I have a partial, which is
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to send the form data. <%= submit_tag ''Save'', :class => ''submit'', :onclick => "document.getElementById(''save_button'').disabled=true;", :id => "save_button" %> This code sends the form data and a record is created,
2010 Feb 10
16
nil object - can anyone help?
Hi there, I''ve been looking for a while now and can''t seem to find where I''m going wrong.. I''m following a railscast tutorial to send invites out to people. there''s n invitation.rb page: class Invitation < ActiveRecord::Base #attr_accessible :sender_id, :recipient_email, :token, :sent_at belongs_to :sender, :class_name =>
2013 Apr 15
4
Rails' scaffold controller generator - should it test json format also?
(Forgive me if this is incorrect, because I recognized this initially as something in Rails 4.0.0.beta1 and have just done a cursory look over the latest generator code.) Noticed in Rails 4 that the test generated for a scaffold controller only tests the html format instead of both html and json:
2012 Aug 13
10
Question about PATCH method, accepts_nested_attributes_for, and updates to association lists (has_many, HABTM)
Am interested in the new PATCH method that will be included in Rails 4, but have a question/concern, and forgive me if I''m misunderstanding it. So, if the request parameter _method is set to "patch", the update is processed as a patch. But, let''s say you have a model called Airplane and Airplane has a collection of FlightCrewMembers which it
2013 Jan 14
0
ActionMailer helper :all
...nclude view helpers by default, and helper :all makes it to look for all_helper.rb Similar issue was discussed before: https://rails.lighthouseapp.com/projects/8994/tickets/3945-helper-all-on-by-default https://github.com/rails/rails/issues/928 https://github.com/rails/rails/issues/1582 Steve Klabnik told me to post here: https://github.com/rails/rails/issues/8911 As of rails 3.2.11 the problem is still there: class ContactMailer < ActionMailer::Base helper :all end Produces: LoadError (Missing helper file helpers/all_helper.rb): Shouldn''t it load them all, as in ActionContr...
2012 Jul 05
2
Addition to has_many - a ':source_scope' option
Was looking to work on a small addition (to has_many) which will be useful to me and others alike. A few technical details about the addition: Basically wanting to have something like, has_many :subscribers, through: :subscriptions, *source_scope:* :deleted We currently have to do this in our code as, has_many :subscribers, through: :subscriptions, conditions:
2013 Sep 08
6
not able to install rails getting an error "could not find javascript runtime"
Hello people Iam a newbie in Rails.Iam facing problem while installing. I installed rails installer i created my project going to sites Then rails -v (it worked) I ran bundle install I ran rails -s and i got this error I uncommented in gemfile #gem therubyracer still error is not being resolved,have searched but could not resolve the problem -- You received this message because you are
2012 Apr 15
5
JQuery-rails gem spec removal
Hi there, I don''t know if this is the right place to discuss such a topic. I''ve suggested to remove jquery-rails spec folder, since it hasn''t got any tests, they are not adapted to RSpec2 and not even to latest rails. They are one year old and it contains only one empty test. I have an application that runs all tests on all engines, being jquery-rails one of them. I
2011 Jul 11
6
Unicorn vs Apache
Hello all, I have always deploys rails apps with unicorn and nginx as a reverse proxy in the past. However, I am working with a new firm and they would like to use Apache with mod_pagespeed in front of unicorn. We will be deploying a rails 3.1 app with streaming. To me, mod_pagespeed does not seem like a magic bullet, as it appears to be a collection of best practices which have to be rewritten
2012 Sep 04
10
Generic asset definitions and management
(The following is not a Rails-specific question, but relates to a problem that affects Rails, so I wonder whether anyone on the team has an opinion about it or knows whether a solution is already in development.) While gem dependencies can be easily managed in a Gemfile by Bundler, when it comes to other assets, you either have to manually copy javascript files into the app/assets or vendor
2013 Feb 26
5
Can't upgrade to 4 beta 1
I had to update several gems for Bundler to accept it but now I''m stuck: bundle update rails devise knockoutjs-rails sass-rails coffee-rails devise-encryptable oojs Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Bundler could not find compatible versions for gem "railties": In Gemfile:
2013 Apr 02
10
Suggested strategies for testing a gem against Rails 3.x and Rails 4?
I''ve seen a few examples of dummy Rails apps (for testing, so they live under test or spec dirs, typically) for use with the Appraisals gem that supposedly work with both Rails 3.x and Rails 4, but they seem hackish and not fully functional. It is somewhat expected, as it is a stripped down Frankenstein monster that is trying to be compatible with various versions of Rails 3 as well