Displaying 3 results from an estimated 3 matches for "forum_control".
2006 Apr 11
2
Noobish URI Question
Sorry if the answer has been posted but the search terms (like URI) are
so generic I get tons of useless results.
I have a controller (in this case "forum_controller") so if I want to
read a forum topic the URI is "/forum/topic/1". As of right now for
adding a new topic my URI is setup as "/forum/new_topic".
I''d really like it to be something like "/forum/topic/new". Is there
some method naming convention in...
2008 Jan 12
0
Can't test application controller methods in functional tests?
..."forum"
...
end
-------------------
For method home, action list_forum works according to my test, so that
shouldn''t be the problem. The corresponding tests gives errors:
-------------------
require File.dirname(__FILE__) + ''/../test_helper''
require ''forum_controller''
# Re-raise errors caught by the controller.
class ForumController; def rescue_action(e) raise e end; end
class ForumControllerTest < Test::Unit::TestCase
#add fixtures:
fixtures :messages, :message_threads, :message_boards, :forums
def setup
@controller = ForumController...
2006 Apr 29
0
Trouble with firefox and AJAX
...afari and IE seem to work fine, while Firefox pops up the ''before''
and ''after'' messages, and then nothing. The server logs show that the
post_view request is received and processed, so I''m stumped as to why
this fails. Any ideas?
Cheers,
Andrew
==== forum_controller.rb ====
class ForumController < ApplicationController
def viewtopic
topic_id = params[:id].to_i
begin
@topic = Topic.find(topic_id)
rescue ActiveRecord::RecordNotFound
flash[:notice] = "This topic does not exist"
redir...