search for: project_notes

Displaying 3 results from an estimated 3 matches for "project_notes".

2006 Mar 01
0
TextHelpers in Controller?
I have a controller that saves info to the DB. It''s based on the AJAX scaffolding code. All I want to do is add a simple_format() function to it before I save a user-edited text field to the DB. TO convert line returns to <br>s, etc. @project_note = ProjectNote.new(params[:project_note]) @project_note.body = simple_format(@project_note.body) Since this happens in a controller,
2006 Dec 11
1
Index help on Polymorphic Associations
..._by, :updated_by ], :user_class_name => ''AuthenticatedSystem'', :user_method => ''current_user'' acts_as_ferret :fields => {:name => {:store => :yes}, :description => {:store => :yes}, :project_notes => {:store => :yes}} has_many :notes, :as => :notable ..... def project_notes @index = Array.new for note in self.notes @index << note.details end @index.join(" ") end .......... class Note < ActiveRecord::Base acts_as_authorizable...
2006 Feb 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here. I''ve got a link to remote that I believe should be working, but doesn''t seem in fact to do *anything*. I''m looking at the webrick log, since the Book says I should be seeing some hot POST action in there, but there''s literally no change when I click on the JS link. From looking at the source that''s