search for: get_project

Displaying 4 results from an estimated 4 matches for "get_project".

Did you mean: set_project
2006 Jan 08
2
RoR AJAX select box update?
Hi, I want to update a select box depending on another selected option thru ajax. Heres how I do it # _form.rhtml <select id="budget_coordinator_id" name="budget[coordinator_id]" onchange="<%= remote_function(:update => "budget_project_number", :url => { :action => :get_projects }) %>"> <%= options_from_collection_for_select(Coordinator.find_all, "id", "coordinator_name") %> </select> <select id="budget_project_number" name="budget[project_number]"&...
2011 Apr 21
1
Rails 3 Foreign Domain routing - cannot get this to work!
...nk? "#{self.subdomain}.#{APP_CONFIG[:domain]}" else "#{self.cname_alias}" end end [/code] as per the example, my base controller: [code] # app/controllers/personalized/base_controller.rb class Personalized::BaseController < ApplicationController before_filter :get_project protected def get_project @project = Project.first(:conditions => { :cached_domain => request.host }) end end [/code] One thing I noticed, in PersonalizedDomain, was that if I put a debug statement in the self.matches? method as such: [code] class PersonalizedDomain...
2005 Dec 16
3
Help with error
...ramework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/ base.rb:1501:in `method_missing'' ./script/../config/../app/controllers/admin_controller.rb:65:in `add_to_project'' The following code: application.rb -------------- private def get_project session[:project_in_progress] ||= Project.new end project_controller.rb --------------------- def new_general @project = get_project @general = GeneralItem.new @general_tab = "current" end # Get the current Project session and # add the current Object to it def add...
2008 Oct 30
1
Nested Resouces,not getting parent id(project_id) from form
...from edit form.What''s a problem if any one knows please help. edit.html.erb <% form_for(@defect,@project) do |f| %> <%=f.text_field :name%> <%end%> routes.rb map.resources :projects,:has_many=>:defects map.resources :defects defecs_controller.rb before_filter :get_project private def get_project @project = Project.find(params[:project_id]) end def edit code for update defects end Here problem is from edit form i am getting project id. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this mes...