Displaying 3 results from an estimated 3 matches for "statscontrol".
2006 Aug 12
4
form problem on deployment. Not sure how to debug this.
...for the problem.
I am trying to deploy a rails app to my external host (dreamhost).
It works great in development on my machine but when It gets into
production on dreamhost Data seems to be missing when I try and submit
the form.
Here''s what it looks like when it works...
Processing StatsController#new (for 127.0.0.1 at 2006-08-11 22:25:25)
[POST]
Session ID: e5a8904dd66379df002779de8a2afcd8
Parameters: {"commit"=>"Save", "date"=>{"month"=>"8", "day"=>"11",
"year"=>"2006"}, "...
2008 May 08
2
Testing render :text without has_text
...that ties me to the implementation of the
Marshall class. Instead, I just want to demarshall the string and
compare that with the expected objects. To do this, I need RSpec to
give me the complete text string that''s rendered by the controller.
Here''s the controller:
class StatsController < ApplicationController
layout nil
def query
reports = StatisticsReporter.query params[:query_params]
render :text => Marshal.dump(reports)
end
end
And here''s the test:
describe StatsController do
before :each do
@query_params = { :foo => :bar }
end...
2006 Aug 12
6
params not getting POSTed
I have a situation where no params are being sent when the form is
submitted.
After the rendering this is the html that I get...
<form action="/stats/new" method="post">
Height: <input id="stat_height_ft" name="stat[height_ft]" size="5"
type="text" />ft </p>
Weight: <input id="stat_weight_lbs"