similar to: undefined method `each' for "":String

Displaying 20 results from an estimated 1000 matches similar to: "undefined method `each' for "":String"

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]
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 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody, I''ve installed Authlogic on Rails 3 following the Railscast (http:// railscasts.com/episodes/160-authlogic), and the resources I was able to find on the web, but I''m facing a problem. Once I''ve generated the user_sessions controller and mapped the login and logout routes, I get an error if I try to load the login page : uninitialized constant
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
2012 Oct 19
1
Globalize3 gem, upload data from CSV
Rails 3.1.3 Globalize3 latest I am not sure if I can ask this question here in general Rails forum. But I''ll try. Currently I am using a gem, Globalize3, which is useful for model I18n. https://github.com/svenfuchs/globalize3 Say, I have a model City, having only one column, name. City names appear differently depending on the language, so perhaps this particular gem is useful.
2007 Dec 26
2
Overriding or changing HTML generated by date_select?
Hi, I''m looking for a way to customize the HTML forms generated by date_select. I''m especially keen on replacing the year and possibly day input by a simple text field, since honestly, I find listboxes for years to be quite retarded (if I wanted client-side validation, there would be better ways to do that instead of having people try and find their year of birth in a list of
2011 Dec 20
4
Custom Devise Controller
Hi Guys, I was wondering if sb could help me. I have the following problem: -I want to create a complex form using railscast tutorial ( http://railscasts.com/episodes/73-complex-forms-part-1). Well, to perform this I need to update my controller(in this case the controller responsible to manipulate user). But I''m using Devise gem and I don''t know how I could manipulate the
2013 Mar 04
2
Model/google maps display
Hi all, I''m building a ror app and have a model with geo-coordinates would like to use the info in the model to generate a google map view, does anyone know what''s the best way to go round this? is is Google API?, I''ve also seen a gmaps4rails, any comments? Thank you in advance, Jax -- You received this message because you are subscribed to the Google Groups
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes. I''ve got a profile and a service model, both related with has_and_belongs_to_many. The problem is that i can insert new data in the profiles_services table, however, i cant delete already existing data. What could be the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message
2012 Jul 03
1
View with Variable Number of Fields
I''m a relative n00b when it comes to Rails. I''ve gone through Michael Hartl''s tutorials (both editions, books and screencasts) and I can build a basic CRUD web app without help. However, for a personal project I''m working on, I''m lost as to how to move forward. Here''s the situation ... I have a model called Project with two fields,
2010 Dec 25
1
Advanced search without database
Hello guys, Im trying to make an advanced search form, actually i did like Ryan Bates teaches in this railscast : http://railscasts.com/episodes/111-advanced-search-form But my problem is that i dont want to save the searches in my database and i dont know how to do this... In the railscast, there was a comment like this: *14. Karl <http://www.vbsfinder.com/> May 26, 2008 at 23:01 *
2012 Aug 13
9
Using Jquery plugin "tokenInput" with rails
Hi, I made a contact manager app using rails. I added TokenInput plugin to introduce an instant contact search functionality in it. Tried following a railscast http://railscasts.com/episodes/258-token-fields but have been struggling with it for a while. Following is the code I use in my view <%= form_tag({:action => ''show'', :id => @contact_tokens}, :remote =>
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
2010 Mar 16
7
Recommendations for pdf generators
hi, everyone, i have googled around for some pdf generators. Found 1) PDF::Writer which is a little dated 2) Rupdf (http://scoop.simplyexcited.co.uk//2007/12/15/rupdf-simple- ruby-pdf-rails-plugin/ and http://agilewebdevelopment.com/plugins/rupdf) - it''s a little dated. Last revision was on 15th of Dec, 2007. Any recommendations for pdf generators? thank you -- You received this
2008 Jan 23
2
integrate_views is not executing my views
I wanted to use "integrate_views" as Ryan explains in his RailsCast #71 (http://railscasts.com/episodes/71) ...but I can''t get it to work: the view code in not executed I looked everywhere but I can''t understand what I am doing wrong. Here is what I did: I created a new application from scratch (Rails 2.0.2), added rspec and rspec_on_rails plugins, and run
2008 Nov 12
2
Using Active Resource in ROR Application
Hi all, I want to use Active Resource to communicate with other application. How can i use Active Resource in my ROR application. anyone knows please help me out. Thanks and regards, Shripad --~--~---------~--~----~------------~-------~--~----~ 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
2010 Mar 05
15
Three submits, one controller
I have a ''new'' page with a submit for creating stories. On the ''show'' page the submit allows a user to enter comments. I now want a ''edit'' page for the stories with another submit for updates. I have used the ''create'' and ''update'' methods in the stories_controller on the ''new'' and
2012 Sep 26
2
Online Chat application in Rails 3.1.3
Hi all, How to create *Online Chat application* in Rails 3.1.3 and Ruby 1.9.3 Could any one please tell me the steps or any sample application..Please Kingston.s -- 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
2011 Nov 24
4
How to upgrade rails 2 application to rails 3?
I developed a rails application using rails 2.3.8 version but now how to upgrade this application in rails 3.0 version. -- Posted via http://www.ruby-forum.com/. -- 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
2008 May 02
1
names of select elements inside a fields_for block not generated as expected
Hey All, I''m trying to play along w/the ''complex forms 1'' railscast (http://railscasts.com/episodes/73) and having trouble. The view is projects/new. I''m trying to add some project_people to the form w/code like so: <% form_for(@project) do |f| %> [project stuff here] <% for pp in @project.project_person %> <% fields_for