search for: go57itdsaco

Displaying 7 results from an estimated 7 matches for "go57itdsaco".

2008 Oct 16
4
Removing values from a select (drop-down) box
Hello, I am working on a project, and on one form we have a select (drop- down) box where the user needs to be able to select from a list of clients. The box is currently being populated with: <%= collection_select(:client, :id, @account.clients, :id, :name) %> The problem is that some of these clients may have already been selected, and we need to remove them from the list. Is this
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
2008 Oct 09
2
has_many validation the Rails way
Okay, this is something I run into a lot and don''t really have a great solution. Here is a simple example: class Blog < ActiveRecord::Base has_many :posts validates_presence_of :name end class Post < ActiveRecord::Base belongs_to :blog validates_presence_of :name validates_presence_of :blog_id end Now, if I want to create a blog and post at the same time I
2009 Sep 14
2
Set a select box with default value selected
I am relating to the book & subject example mentioned in the tutorial mentioned here: http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-examples.htm There is a file that goes like show_subjects.html.erb and it will list all the books for that particular subject we''ve selected. Suppose if there were no books to show for the subject we can ideally show a corresponding message
2008 May 29
6
Production install (RoR + Oracle + IIS)
Hi. Although an expert developer for IBM systems (iSeries) I am VERY new to RoR and somehow to the PC development world as well and not familiar AT ALL with PC configurations, etc. (in my regular job good ol'' IBM takes care of all that and I just need to code). So forgive me if any of the following sounds stupid, it probably is. Just get a laugh at my expense and try to answer between
2008 Aug 20
0
Re: Help with RoR partial views
Your partial uses a simple form_for(@product) call. By default that will do a POST to the products/create action, which if it''s successful, does a redirect to products/show/<<id for the new product>> (see the create method in your products_controller.rb file). My advice is to just play around w/rails for a bit & get used to its conventions before you try to bend it to
2009 Sep 14
0
markdown call prompts "uninitialized constant ActionView::Helpers::TextHelper::Markdown" in upgraded application
Hey All, I''m attempting to upgrade my app from rails 2.0.2 to 2.3.3. One bit that''s failing is this call here (in /views/projects/show.html.erb) <%= markdown(@project.description) %> That earns me a: uninitialized constant ActionView::Helpers::TextHelper::Markdown On that line. I''m on a rebuilt machine (windows xp, ruby 1.8.6) so I thought it was a