search for: messages_control

Displaying 5 results from an estimated 5 matches for "messages_control".

2007 Jun 17
1
actionmailer & picture
...;' #{RAILS_ROOT}/app/views/goalbuddies/_gbdisplay.rhtml:9:in `_run_rhtml_47app47views47goalbuddies47_gbdisplay46rhtml'' #{RAILS_ROOT}/app/views/user_mailer/vic_announcement.rhtml:14:in `_run_rhtml_47app47views47user_mailer47vic_announcement46rhtml'' #{RAILS_ROOT}/app/controllers/messages_controller.rb:397:in `send_gmessage'' #{RAILS_ROOT}/app/controllers/messages_controller.rb:368:in `each'' #{RAILS_ROOT}/app/controllers/messages_controller.rb:368:in `send_gmessage'' Thanks very much in advance for your help! Mike -- Posted via http://www.ruby-forum.com/. --~--...
2006 Feb 06
1
template choice error (layout.rb)
...on_controller/benchmarking.rb:53:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in `render'' /app/controllers/messages_controller.rb:52:in `get_messages_since'' It looks to me like layout.rb is incorrectly trying to use an rjs template when none exists. I looked briefly at layout.rb but don''t have enough context to know what''s going on without significant digging. Anyone have a clue why the rjs...
2005 Oct 15
0
Making link_to use the routes I define
...d on its list action. Currently this is what I do: <%= link_to forum.name, ''/'' + forum.url_name %> Obviously that''s not pretty, since it''s half hard-coded... I don''t know if I''m making sense, so here are the relevant files (snippets): messages_controller.rb: def list @forum = Forum.find(:all, :conditions => [''url_name = ?'', params[:forum_url_name]]) if @forum.empty? render_text "404: Not found" else for f in @forum @forum_id = f.id end @messages = Message.find(:all, :...
2008 Jun 18
3
Best Way of Extracting Key Value from File
...king capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline testing ... ''): c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' /app/controllers/messages_controller.rb:66:in `parseMessage''; So this is definitely a problem and I can''t use YAML. I tried regexps but I am new to them and I can only extract the entire line like so : result = /^From:.*$/.match(@emailcontent) # where @email content is the text of the email Regexp result match...
2007 Jun 02
7
I''m really bad at controllers, help please.
Hey, Sorry for so many questions - I''m really bad at this right now. I''m trying to cover the following code w/ rspec def index if params[:user_id] @user = User.find(params[:user_id]) @messages = @user.messages end end So basically what I''m doing is listing all the messages for a user, provided there is an id parameter. describe