search for: notahat

Displaying 20 results from an estimated 21 matches for "notahat".

Did you mean: betahat
2006 May 21
3
Using ParseDate in for loop
Hi, I''m trying to use ParseDate within a for loop but I get this error: can''t dup NilClass Any suggestions for making this work? Thanks, -Jason
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own db and app directory. I have a rake task which creates all necessary minimum data to run their website: default rights and roles, a superadmin user, a "us_states" table already populated, some local depots and terminals (it''s a logistics app). I don''t have any cucumber scenarios for it and
2009 Jul 20
9
rake error
...cruggs-metric_fu (1.1.1) linecache (0.43) memcache-client (1.7.4) metaid (1.0) mini_magick (1.2.5) mislav-will_paginate (2.3.11) mocha (0.9.7) mojombo-chronic (0.3.0) money (2.1.3) mongrel (1.1.5) mysql (2.7) net-scp (1.0.2) net-sftp (2.0.2) net-ssh (2.0.11) net-ssh-gateway (1.0.1) nokogiri (1.3.2) notahat-machinist (1.0.3) polyglot (0.2.6) prawn (0.5.0.1) prawn-core (0.5.0.1) prawn-format (0.2.0.1) prawn-layout (0.2.0.1) rails (2.3.2, 2.2.2) rake (0.8.7) rcov (0.8.1.2.0) RedCloth (4.2.2) relevance-rcov (0.8.3.4) rmagick (2.10.0) rspec (1.2.7) ruby-debug (0.10.3) ruby-debug-base (0.10.3) ruby_parser...
2006 Jan 31
4
Rails bug? Conditions on associations ignored by eager loading
I''m looking for someone to confirm the following as a bug in Rails 1.0 before I post it to Trac. If I use eager loading on an association that has conditions defined, the conditions are ignored. The following example illustrates the problem. I have two tables: create_table "blogs", :force => true do |t| t.column "name", :string end create_table
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller: class FredController < ApplicationController def hello render :text => ''Hello, world!'' end end and I create a simple functional test within the engine: class FredControllerTest < Test::Unit::TestCase ... def test_hello get :hello assert_response :success end
2006 Feb 12
3
Error when Eager Loading "Not unique table/alias"
Hi list, I get the error "Not unique table/alias" (myql 4.1) when trying eager load 2 classes that use the same base class (not STI) Example: <code> class Wedding < ActiveRecord::Base belongs_to :bride, :class_name => ''Person'', :foreign_key => ''bride_id'' belongs_to :groom, :class_name => ''Person'',
2007 Mar 13
1
imap and character enconding
Hi, hi, hi little droogies First of all, sorry for the lame english and the dumb question. After a quick search on google I found iconv, and some other toys, but the point is: I''m making a small webmail app for my company, still taking the first steps. For instance, if I want to read my INBOX folder and list the messages: ------------------------------------------- CONTROLLER =>
2007 Jun 12
1
Captcha, account verification in RoR
I am creating a Ruby on Rails site and am curious about the best way to stop spam on the site. For account creation there is: a) Captcha b) email verification For messages, forums I am sure you could try to check the message for any weird characters or typical spam phrases. I saw in the other post there is the hivelogic email enkoder for hiding email addresses for protecting email addresses. I
2007 May 17
8
Model: self is not child's parent
Assume a model Parent and another model Child. Child belongs_to Parent and Parent has_many Children. The following fails: @ p = Parent.find(:first) assert p.equal?(p.children[0].parent) @ It seems odd to me that I and my child''s parent are not the same object. In fact, this is royally screwing me up. Can anyone tell me why this is or point me at a relevant discussion, blog posting,
2006 Jul 18
9
Simple Array Issue - HELP
Ok, I am interfacing with the del.icio.us API and I want to collect the links in an @instance variable for my view. But I''m having trouble with that part. Here''s what I have: def get_authenticated(path, http) request = Net::HTTP::Get.new(path) request.basic_auth ''user'', ''pass'' response = http.request(request) response.value response.body end
2006 May 03
2
Perplexing nested transaction issue
I''ve been struggling with a strange nested transaction problem for a while. I have a two objects with the following relationships: Mail has_many :recipients Recipients belong_to :mail I''d like to update the status of the Mail object while sending mails for each of it''s recipients. Following is a simplified example that I''m having problems with: def
2006 Jan 16
6
the competition?
The ''gmail'' video seems really interesting: http://www.morfik.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060116/385e77f0/attachment.html
2006 Jul 09
8
Can the has_many create() method return an ID?
Hi all, I have a has_many relationship, Cookbook :has_many Recipes If I want to create a new recipe in my cookbook I do: cookbook.recipes.create(data) It would be nice if I could then easily get the id of the new recipe, but the create() method doesn''t seem to return anything. Any ideas how? Thanks in advance! Cameron -- Posted via http://www.ruby-forum.com/.
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of my class "entity". Entity is ActiveRecord. I''m able to retrieve all sorts of data from an @entity, until I do something like: <% for @attribute in @entity.attributes %> <div id="attribute_<%= @attribute.id %>"> <%= render(:partial =>
2006 Feb 14
7
9cays - A Rails app for Group Email
Even though it''s a little OT, I thought I''d announce the free public beta of a new Rails app that I''ve been working on for a while: http://9cays.com Think of it as mini-mailing list software. For a lot of smallish conversations, normal mailing list are too heavyweight (requiring setup, moderation, admin, etc.), but group email is a pain because messages
2011 Feb 07
9
Best way to populate development database
What would be the best way to populate a development database for a Rails 3 app? I have looked at faker, but it seems that development has stopped, any other options? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2007 Jun 25
2
undefined method `each' for ***:Class PROBLEM
Hi, i am very new to ROR, this is my 2nd day since i solve the problem of database connection. when i started to write some codes, i got stuck. here is the situation and please give me some help. i have a "posts" table in my database CREATE TABLE `mapapp`.`posts` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) default NULL, `body` text, PRIMARY KEY (`id`) )
2006 Jun 22
11
Help please
Getting this error: SyntaxError in CompanyController#positionslist (eval):1:in `compute_type'': compile error (eval):1: parse error, unexpected tINTEGER Object::2 I could not find anything out about it (googling) and it''s not the clearest error message. Not sure if it''s related to an expected data type but that wouldn''t make sense. The only other thing I can
2006 May 04
22
Should controllers be "smart"?
I''m working on a small project with a friend, and one of the things we needed to do was send off an email whenever someone signs up an account. His implementation was pretty simple - throw a deliver_welcome call inside the controller after the signup. I''m sure that this is a pretty common thing to do. The problem, in my mind, was that the app now became tied to two places -
2006 Apr 10
0
Log rotation
Using Logger''s standard log rotation in a production Rails app fails, and I''m looking for the easiest way around the problem. Currently, I''m using this in environment.rb: Logger.new("#{RAILS_ROOT}/log/#{ENV[''RAILS_ENV'']}.log", ''daily'') but sometimes get this showing up in the browser: Shifting failed.