Displaying 20 results from an estimated 2000 matches similar to: "Routing help.... it is so difficult!"
2006 May 18
6
Routes and Testing Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. If someone could possibly point me in the right
direction, I would really
2006 May 18
2
Help with Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. I will try to explain my understanding of how routes
work. Via this
2006 Apr 18
7
Functional test, pls help!!!!
Hi guys, recently encountered this funny problem which i really dunno
wat happen...
I have been trying on it for the past few days and just doesnt work.Hope
you guys can give me some enlightenment.
Problem:
The functional test doesnt seems to be able to recognise one of my
model, and when i run the test, it keeps giving me the error of"You have
nil object when you don''t expect
2006 Apr 20
11
dynamic mock object anyone?
Hi guys, got this problem with creating such a thing... hope anyone
could help..
the problem:
ok, now i have this mock object that would simulate a external rpc call.
eg
require ''models/xmlrpc_agent''
class XmlrpcAgent
def create(params)
200
end
end
but the value of the value returned is fixed. which is quite hard for me
to test the controller when different
2006 May 17
0
Strang Behavior when testing Routes
I have the following route:
[code]
map.connect
'':platform_filter/:software/:version/:platform/:distribution_channel/:id'',
:controller => ''user/version'',
:platform_filter => /all/,
:platform => /windows|macintosh|unix|linux/,
:distribution_channel => /Download|download/,
:action => ''download'',
:id =>
2004 Dec 29
2
icecast2.2 and aac?
Trying to get the LE version for months now, still treamguys can?t
deliver....
Regards,
Dennis Heerema
-----Original Message-----
From: "Greg J. Ogonowski" <greg@orban.com>
To: qiang Bao <jakobao@yahoo.com>, icecast@xiph.org
Date: Wed, 29 Dec 2004 11:08:04 -0800
Subject: Re: [Icecast] icecast2.2 and aac?
Icecast 2.2 works fine with AAC/aacPlus at any bitrate.
32kbps
2006 Apr 27
12
how to do a count with a variable...
hi guys, got this problem...
in my controller, when i wanna do a @temp.count it fails...
then i went to try counter = @temp.count which also failed..
thus, i feel that the count is not available for ActiveRecord::Base..so
i went to the Model class eg. user.rb
so in user.rb :
...
def count_uesr
count = 0
self.each do |record|
count ++
end
return count
end
then it ended up having
2005 Feb 04
2
how to generate a function from a linear model
Hi All,
I am trying to generate a function from a linear model. I think there
should be build-in function that perform this action but I've had no
luck finding it.
For example, I have a model created using lm().
model <- lm(sat.d~1+sat.n+I(sat.n^2))
What I would like to have is a function (similar to the one generated
by splinefun()) so that I can use it on different data-sets.
2006 Jul 08
2
Creating/Saving dependent objects
Folks,
Am new to RoR and am building an example to get myself familiar. I am
running into a simple issue while creating a user registration page.
I have a User and Address models defined as below (partial/relevant code
included below). User has_one address and Address belongs_to user. I have a
foreign key defined in address table that refers to user(id)
In a form I take in username, password,
2006 Jun 07
4
WEBrick wouldnt start....
hi guys, just did a search and cant find anything helpful..
suddenly my WEBrick cant start.... omg.... dunno wat''s wrong with it
that''s wat i typed :
......$ruby script/server
=> Booting WEBrick...
......$
that''s all... i dont even know wat''s wrong and when i did a ps -F -C
ruby, i also couldnt find anything.....
did i jsut corrupt the file or wat???
2005 Apr 05
5
R can not show plots (in Mac OS X terminal)
Dear all:
I am a newbie in Mac. Just installed R and found R did not react on my
command plot (I use command line in terminal). It did not give me any
error message, either. All it did was just giving out a new command
prompt--no reaction to the plot command. I suppose whenever I gives out
a command of plot, it will invoke the AquaTerm for a small graph, as I
experience in octave. What can I
2004 Dec 29
3
icecast2.2 and aac?
it seems that icecast 2.2 can only stream aac at 128kbps!
mp3 and ogg are ok at all bitrates.
is it a bug or my config wrong?
---------------------------------
Do you Yahoo!?
Jazz up your holiday email with celebrity designs. Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 25
2
agile depot app login failure :(
Hi *,
In an attempt to go back to the drawing board and learn RoR some more -
I have built the depot application from the agile book.
After finishing I tried to create a user for the admin section, however
when ever I go to:
http://localhost:3000/login/add_user
It redirects to the login action, I don''t see the [add user] submit
button??
I am sure this is connected to the
2006 Mar 29
6
Simply Getting Post Params
I am a complete Rails newbie and am trying to understand how I can
simply get the data from a password field in a form that is not mapped
to a field in the database.
The scenario is this. I have a User model that is mapped to a table
users with the following fields: username, email_address, password and
join_dt. Following pretty closely to the login section in the Agile Web
Development with
2007 Jul 12
4
file couldn't play after Speex encode and decode
Dear sir,
I've a problem that the .wav file couldn't play after calling "sampleenc
male.wav|sampledec male_speex_15.wav".I found that the new file
male_speex_15.wav is smaller than the original file in size.I implemented
the test on Linux system.The original file male.wav is 96044 bytes,while the
new file male_speex_15.wav is 96000 bytes.I'm eager to know the reason.Thankyou!
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All,
This is my first post to the ruby message board so if my request is
better suited to another location just let me know,
The problem I keep coming up against is with a listing of objects and
updating that list via AJAX (for arguments we are talking about a list
of users).
As it stands I can currently submit a form, and update the list
(using :update
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login
suport in Depot (the example in the RoR book) and
LoginController#add_user throws ActiveRecord::StatementInvalid in an
innocent /login/add_user GET request.
The trace goes down to a call to SQLiteAdapter#table_structure, and
the source code suggests what''s happening is that "PRAGMA
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi,
I''m just starting with Rails and i''m trying to do something like this:
<%= start_form_tag :action => ''add_user'', :id => @social_event_group %>
<%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ]
}%></p>
<%= submit_tag "Add User" %>
<%= end_form_tag %>
2006 Jan 26
3
Help on implementing rails from html with php
Hi guys, just started using rails and is trying to implementing the
present html with some rails...
However i met this problem when i am trying to port over some php code
in html to rails and i cant find any method to successful convert the
php codes.
Below is a feature i tried to implement in rails way:
there are 2 buttons on the html. Besides these 2 buttons is an infobox.
So, whenever
2008 Dec 31
7
Understand submit_tag
Hi everyone,
I was following the book Agile Web Development with Rails 2Ed. by Dave
Thomas.
So, at some part of my studies, I decided to try to create my own
application based on what I''ve learned...
Now I''m in trouble in a simple form.
I tried to create a form to register new users.
I''m sending attached the files that I created for this.
but my view don''t