Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
can someone help me out with this error message (dashboard routing and report generation)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
denniss  
View profile  
 More options Dec 28 2010, 9:39 pm
From: denniss <adamanti...@gmail.com>
Date: Tue, 28 Dec 2010 18:39:40 -0800 (PST)
Local: Tues, Dec 28 2010 9:39 pm
Subject: can someone help me out with this error message (dashboard routing and report generation)
I am trying to get Vanity to run on Rails 3 and I got everything set
up and was able to start the rails server. However, I do not know how
to convert

map.vanity "/vanity/:action/:id", :controller=>:vanity

to the rails 3 format and when i tried running the

'vanity report' command, I got this

:kobe denniss$ vanity report --output vanity.html
/Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/vanity/
commands/report.rb:17:in `split': can't convert Hash into String
(TypeError)
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/commands/report.rb:17:in `render'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/templates/_report.erb:18:in `render'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/commands/report.rb:21:in `render'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/commands/report.rb:21:in `instance_eval'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/commands/report.rb:21:in `render'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/lib/
vanity/commands/report.rb:51:in `report'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/bin/
vanity:60
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/bin/
vanity:56:in `each'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/gems/vanity-1.5.1/bin/
vanity:56
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/bin/vanity:19:in `load'
        from /Users/denniss/.rvm/gems/ruby-1.8.7-p174/bin/vanity:19


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarin Udom  
View profile  
 More options Feb 5 2011, 11:21 am
From: Jarin Udom <ja...@robotmo.de>
Date: Sat, 5 Feb 2011 08:21:50 -0800 (PST)
Local: Sat, Feb 5 2011 11:21 am
Subject: Re: can someone help me out with this error message (dashboard routing and report generation)

The route for Rails 3 should look like this:

match '/vanity(/:action(/:id(.:format)))', :controller=>:vanity

This should also work if you want a named route, but I haven't tested it:

match '/vanity(/:action(/:id(.:format)))', :controller=>:vanity, :as =>
:vanity


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
webandy  
View profile  
 More options Feb 17 2011, 11:41 am
From: webandy <andyatkin...@gmail.com>
Date: Thu, 17 Feb 2011 08:41:13 -0800 (PST)
Local: Thurs, Feb 17 2011 11:41 am
Subject: Re: can someone help me out with this error message (dashboard routing and report generation)
Denniss I get the same error for the reporting side. Logging the
"path" variable inside the report.rb file the stack trace mentions, it
looks like it is being called twice. The first time it is a string,
which looks like is what the code depends on it being, the second time
it is a hash. Here is the first part of the path variable hash I see.
I've only created the experiment and metric mentioned in the 2-minute
demo. I have the following ruby and gem setup:

ree-1.8.7-2010.02@rails3:
  ruby:
    interpreter:  "ruby"
    version:      "1.8.7"

{:locals=>{:experiments=>{:price_options=>#<Vanity::Experiment::AbTest:
0x105b42f20 @alternatives=[19, 25, 29], @name="Price options",
@id=:price_options, @metrics=[#<Vanity::Metric:0x105b42430
@hooks=[#<Proc:0x0000000105b41698@/Users/andy/Projects/optimizer/
vendor/gems/ruby/1.8/gems/vanity-1.5.1/lib/vanity/experiment/
ab_test.rb:412>], @id=:signup, @name="Signup (Activation

I don't know why it is a hash at any point. But it does look like a
bug with rails 3. Not being able to run the report is bad.

On Dec 28 2010, 9:39 pm, denniss <adamanti...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »