search for: emstolfo

Displaying 16 results from an estimated 16 matches for "emstolfo".

2010 Mar 18
8
hash in controller is nil after submitting form
I''m trying to create a data entry form but getting an error when it sumbmits. I am using an hash to get the names of the fields definied in the controller''s "new" function: def new @thing = thing.new @columns = Hash.new @columns[''thing_general''] = [ ["title","name"],
2010 May 02
8
dev tool
Can anyone suggest a development tool for RoR? How is the plugin for Eclipse? -- 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 unsubscribe from this group, send email to
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to this Railscast: http://railscasts.com/episodes/74-complex-forms-part-2 but I''m getting this error after I submit. Any ideas? undefined method `each'' for "":String -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 May 07
1
undefined method 'find_by_sql'
Why would I get an undefined method `find_by_sql'' for #Example: 0x981a4e4> for error when trying to use the find_by_sql method in my model? def init_dictionaries tables = find_by_sql( "SHOW TABLES FROM thesaurus" ) @@tables = tables.collect{ |t| t.Tables_in_thesaurus } end -- You received this message because you are subscribed to the Google Groups "Ruby
2011 Feb 22
2
tag helper
How can I add specific content inside a tag when I create it using the tag helper? Is there an "inner_html" option? This doesn''t seem to be working. <%= tag(:map, :id => (@module.css_id), :inner_html =>''innerhtml'' ) %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2011 Nov 04
1
apostrophes
My database is in utf8 but apostrophes are showing up as ’ in my templates. How can I fix this? -- 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 unsubscribe from this group, send email to
2010 Feb 24
0
undefined method `default_external=' for Encoding:Class
undefined method `default_external='' for Encoding:Class after doing rake db:create ? -- 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 unsubscribe from this group, send email to
2010 Apr 13
0
character encoding
I''m getting this for my templates, how can I change the encoding? incompatible character encodings: UTF-8 and ASCII-8BIT -- 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 unsubscribe from this group, send email to
2010 Jul 30
0
testing in template for required attribute
Is there a way to say in the template Model.required?(attribute) if validates_presence_of is used on the attribute? -- 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 unsubscribe from this group, send email to
2011 Jan 24
1
segmentation fault on RMagick2
Hi, I''m getting this error when I try to create a migration file: $ script/generate migration create_session /Users/administator/.gem/ruby/1.8/gems/rmagick-2.13.1/lib/ RMagick2.bundle: [BUG] Segmentation fault ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10] Abort trap I''m not sure how to solve it. Any ideas? -- You received this message because you are subscribed
2011 Apr 06
0
test a rake with fixtures
How do a test a rake task using fixtures? I''ve written yaml files for each fixture but I''m not sure how to test the rake using the fixtures. -- 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 unsubscribe
2011 Apr 27
0
paperclip plugin
Hi, Is it possible to have a file uploader in my form using the paperclip plugin that doesn''t correspond to a model attribute? For example, I want to be able to upload a file for a model but name it using the model''s id - then when I retrieve the file, I''ll just use the id to get the file''s path. This way, I avoid having to save that name in the database
2011 May 09
0
gem issues
HI, I''m getting this error for a mongo gem: Expected /Users/.../.gem/ruby/1.8/gems/mongo-1.3.0/lib/mongo.rb to define MONGO How can I resolve that? -- 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 unsubscribe
2010 Mar 30
2
setting up has_many
Do I have to manually set a column in a dependent table for the id of the object to which it belongs? I have a collection of objects called photos that are owned by a analysis object. When I try to show an attribute of each of the photo objects I get this error: Mysql::Error: Unknown column ''photos.analysis_id'' in ''where clause'': SELECT * FROM `photos` WHERE
2010 Apr 30
3
undefined method `call' for nil:NilClass
why would I be getting this error after submitting my form? NoMethodError in EchantillonsController#create undefined method `call'' for nil:NilClass This is my create method in the controller: def create @echantillon = Echantillon.new(params[:echantillon]) @echantillon.set_eros_values respond_to do |format| if @echantillon.save if
2010 Apr 12
3
$(link).previous("input[type=hidden]") is undefined
I am getting this error when trying to use the remove link explained in the Railscast: http://railscasts.com/episodes/197-nested-model-form-part-2 error: $(link).previous("input[type=hidden]") is undefined remove_fields()applic...1065175 (line 6) function onclick(event) { remove_fields(this); return false; }()1 (line 2) [Break on this error]