Displaying 20 results from an estimated 27 matches for "test_controls".
2005 Dec 31
7
Application Errors w/ layout & custom view pages
1) I get Rails Application Error when trying to use layout
test_controller
def list
layout "stdlayout"
end
in the views/test/layouts stdlayout.rhtml
<html>
<head><title>test</title></head>
</body>
<h1>Test</h1>
<%= content_for_layout %>
</body>
</html>
2) I get Rails Application Error when trying to use a separate
2006 Jul 14
1
no such file found
I''m trying to set up my app on Linux SUSE, apache2 using fastcgi. Now
at http://host/ I''m able to see the greeting page (index.html in
public). However, if I try to access my app http://host/candidate/index
I keep getting in the log:
No such file to load --
/usr/home/nye/hire/public/../config/../app/controller/test_controller.rb
Did I set my path wrong? What''s
2006 Jul 14
0
no such file to load?
I''m trying to set up my app on Linux SUSE, apache2 using fastcgi. Now
at http://host/ I''m able to see the greeting page (index.html in
public). However, if I try to access my app http://host/candidate/index
I keep getting in the log:
No such file to load --
/usr/home/nye/hire/public/../config/../app/controller/test_controller.rb
...
Did I set my path wrong?
2006 Jul 22
3
Connection refused - connect(2)
Dear all,
Please help me in this regards,
I am using models to access LegacySchemas using
set_table_name and set_primary_key...
[code for model]
class CdDetails < ActiveRecord::Base
def self.find_data
set_table_name ''cd_details''
set_primary_key ''cd_label''
find (:first,
:select => "cd_label")
end
2006 Apr 27
15
Which is faster, calling helpers or rendering a partial?
Using partials is a nice way to separate chunks of content into
separate pages as opposed to building strings in helpers, but I''m
wondering which is faster. It scares me when I see stuff like:
Rendered users/_public (0.00051)
Rendered users/_public (0.00009)
Rendered users/_public (0.00008)
Rendered users/_public (0.00008)
Rendered users/_public (0.00008)
....50 more times
Has anyone
2006 May 13
1
newbie question - routes.rb on server
Hello,
I am new to Ruby but not to programming. I have a domain name and server
space with a host who said that ruby on rails should work on the server.
All I want to do is make sure that a test ruby application works online
so that I can begin development on an app. I am able to get the test
program to work locally but not online.
In C:/ruby/projects/test/controllers/TestController.rb:
2006 Jul 16
6
Apache2.2 + Mongrel: what do you think about these perfs?
Hi all,
I''ve been spending quite a lot of time trying to install a decent RoR
server on my dedicated server (Ubuntu 6.06 LTS), and now, everything
works.
However, the performances are not really what I had expected... I would
like to know what you think about it.
Here is my config: 2GHz VIA proc, 1Gb RAM, SATA-II HD.
I have apt-got ruby 1.8.4, mysql5 and installed rails 1.1.4 by
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 14
0
Invoke .Net WebService error in RoR
I have written a webservice:
----------- Service.cs ----------------
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld(string name)
2006 Apr 10
1
Error When Sorting
Got a bug I cannot eliminate. My ajax style sorting looks cool but the
position change is never updated. The error (at bottom points to line
52 in my controller and I have indicated that line).
#view
<!-- Question Data -->
<h2>Test Questions</h2>
<div id="list_questions">
<%= render(:partial => "list_questions") %>
</div>
2007 Jun 10
0
pb when posting to an action "render_text body, :status => 400"
Hi,
I''m trying to do a little openid-server in rails.
I encounter a very strange problem for me, you can see all the story in the
openid mailing-list :
http://lists.openidenabled.com/pipermail/dev/2007-May/000666.html
http://lists.openidenabled.com/pipermail/dev/2007-June/000700.html
In short, the problem is :
the server has to do a "render_text body, :status => 400"
2006 Mar 29
0
Bug with skip_before_filter?
There seems to be a bug with skip_before_filter using the :only or
:except conditionals.
Or am I using them completely wrong?
I have this code:
The result is that :test_filter is skipped for both index, and
index_no_filter.
application.rb
# Filters added to this controller will be run for all controllers in
the application.
# Likewise, all the methods added will be available for all
2006 Jan 30
9
error when adding a new table to the existing application
Deniz wrote:
> Hi Everybody,
> I am a newbie in this list so please forgive me if this is a lengthy
> message.
> Currently I am working on a project at my work place that includes
> viewing some oracle tables(I do not have control over to rewrite the
> tables) and searching the tables based on a given criteria with Rails.
> Up untill now everything was working great. The
2006 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea
I have 3 simple files to show example ( below ).
index.rhml : If I put "?nial" inside the textarea, then submit to
:action => post
post.rhml : wrote
?nial
195
"\303\251nial"
//
params[:comment][:message] return => ?nial
params[:comment][:message][1] return => 195 ! ( 195 is not
2005 Jul 20
5
Can't connect to MySQL on another machine
hi everyone
I''ve got two machines here: a Powerbook and a Linux box running MySQL.
The MySQL user privileges seem to be configured properly, e.g. I can
connect to a database using "mysql" from the Powerbook, alter the
tables etc without any problems.
However, I can''t get Rails to connect to the same database. (just a
simple app with one model called "Test"
2006 May 04
6
second assert_tag failling in rails integration test
Hi all,
I''m fairly new to rails and ruby, but I''ve come across an interesting
glitch and I''m not sure whether I''ve just got something wrong with my
assumptions or if it really is an error in the underlying framework...
I''ve created a bare-bones set of tests to show you where the problem is.
What follows are the steps I went through to reproduce the
2006 Apr 07
22
Find WHERE in Rails
I''d like to find all records that have a certain integer as their
"level" field in the database. I know how to find all the records:
allquestions = Question.find(:all)
...and I know how to find the one record that has a certain id:
allquestions = Question.find(params[:id])
...but how do you find all the records that share a certain value in one
of their fields? I tried
2006 Oct 01
9
How to create a very simple form
Hi all,
I would like to create a very simple form with RoR similar to this one
in ASP.Net:
http://quickstarts.asp.net/QuickStartv20/aspnet/samples/ctrlref/standard/TextBox/TextBox1_vb.aspx
I my RoR project I want to add a Greeter class like this one:
class Greeter
def initialize(name = "World")
@name = name
end
def say_hi
puts "Hi #{@name}!"
end
def
2013 May 31
11
A simple javascript alert not working
If I have a file in view /test called index.js.erb and in it a simple
alert("hello") shouldn''t that run when I go to /test/index? It doesn''t.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it,
2006 Jul 10
10
Problem using Feedtools on my Rails project!
Hi
I''m trying to setup my app to use Feedtools amazing RSS powers, but it
fails miserably on the following line:
logger.debug("Description:#{FeedTools::Feed.open("http://rss.slashdot.org/Slashdot/slashdot").items.first.description}")
The stack trace says:
wrong number of arguments (0 for 1)