search for: snibbl

Displaying 10 results from an estimated 10 matches for "snibbl".

Did you mean: snibble
2011 Jan 15
3
respond_with javascript
...otes`.`user_id` = 3) AND (`votes`.`story_id` = 3) LIMIT 1 SQL (1.4ms) ROLLBACK Completed in 1466ms ActionView::MissingTemplate (Missing template votes/new with {:locale=>[:en, :en], :handlers=>[:builder, :rjs, :rhtml, :erb, :rxml, :haml], :formats=>[:html]} in view paths "/Users/snibble/Projects/Ruby/storychan/app/views", "/ Users/snibble/Projects/Ruby/storychan/vendor/plugins/white_list/app/ views"): app/controllers/votes_controller.rb:16:in `create'' Rendered /opt/local/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/ action_dispatch/middleware/templates/r...
2009 Mar 13
6
Using LIKE
I''ve heard that using LIKE is very slow, but I see it being used a lot in examples, blogs etc. Is it really that bad? Since Rails doesn''t directly support Fulltext search, this is the easiest way to get searching done, right? Or are there any other easier ways? I''m using acts_as_indexed right now, but it still doesn''t do what LIKE does.
2011 Apr 26
2
exception notifier not working on production
I''m using Rails 3 and installed exception notifier as a gem. It works perfectly in development, but for some reason it isn''t sending e-mails in production. When I check the logs, I don''t see any mention of my app trying to send an e-mail, but running rake middleware shows that it is loaded. I''m really confused, why is this happening? -- You received this
2009 Jan 02
5
Very odd NoMethodError/stack overflow....
I''m getting this very weird error and I can''t figure out what the problem is. I''m using acts_as_commentable. Basically, I have a partial with this code in it: <div id="<%= ''#{comment.commentable_type}_comment_# {comment.commentable_id}'' %>" class="comment"> <dl> <dt><%= link_to comment.user.login,
2009 Mar 15
3
Capistrano deploy errors
Hi, when I do cap deploy:cold I get this error: rake aborted! undefined local variable or method `acts_as_commentable'' for #<Class: 0x7fa1c34a2f10> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1833:in `method_missing_without_paginate'' /usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.8/lib/ will_paginate/finder.rb:170:in
2009 Oct 04
1
circular relationship - habtm
So I have 2 models: Picture and Comment. Pictures have many Comments, but I''d like for users to be able to post Pictures in Comments, so Comments will have one Picture (possibly). This creates a kind of circular relationship it looks like, and the only way I could think of to implement this is with has_and_belongs_to_many. Am I right, or is there a better way to do this?
2011 Jan 11
1
deploying with capistrano and bundler
I''m deploying via capistrano but when I try and do a bundle install it asks for my password to install the gems. I give it a password but oddly enough the password appears on the console in plain text and when I press enter, nothing happens. I waited for a couple hours and still nothing happened, so how am I supposed to run bundler with capistrano? -- You received this message because
2009 Jan 05
2
How do booleans work?
I''m a little confused as to how booleans work in Rails. Which is better in the database? boolean or int(1)? True == 1 and False == 0, right? Using SQLite, I tried to set a value to true inside the database but it gave me an error. MySql didn''t, so I had to switch to int(1) for it to work. Is this just how it is? --~--~---------~--~----~------------~-------~--~----~ You received
2009 Feb 27
2
Getting unique entries from models?
I''m using acts_as_taggable_on and I want to get a list of unique taggings. How can I do this? In a more general sense, say that I have a Product model with attributes name and price. I have these: id: 1 Name: Juice Price: 5 id: 2 Name: Juice Price: 5 So when I do a Product.find(:all) I''ll get both, but I only want one. How can I do this so that no matter now many
2008 Nov 11
4
Very weird rake message...
When I try and run rake db:migrate, I get this error: rake aborted! uninitialized constant CreateUsers /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:266:in `load_missing_constant'' /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:453:in `const_missing''