Displaying 20 results from an estimated 1000 matches similar to: "Different controllers placement"
2005 Oct 25
2
centos 4.2 with reiserfs
Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as
follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o
fs/reiserfs/stree.c: In function `get_lkey':
fs/reiserfs/stree.c:322: warning: return from incompatible pointer type
fs/reiserfs/stree.c:325: warning: return from incompatible pointer type
fs/reiserfs/stree.c:329:
2005 Dec 22
2
routes and url_for
Hi, All.
I try to relocate controllers. Admin space controlers moved to
/app/controllers/admin and user space controllers to
/app/controllers/user
In routes.rb I use
map.connect ''search'', :controller => ''user/search''
that correct I see.
But when I want to use start_form_tag or simply url_for, that used in
start_form_tag, I do not know how generate url
2005 Dec 28
3
problems with lighty on linux
I''m trying to get our app running on Lighty... I followed Ezra''s
instructions: http://brainspl.at/pages/rails_stack... Currently the app
runs fine with webrick, but with lighty I get 404 errors on everything.
I found if I don''t edit the lighttpd.conf file to use absolute paths, it
works fine. But this is not good for production because I need to run it
with the -d
2005 Dec 19
3
tough activerecord problem
I have an application that is using active record outside of rails. the app
works fine w/o the activerecord code, but when I added activerecord to the
mix I started having trouble with constants not being recognized, e.g.:
[echo] 1) Error:
[echo] test_pipeline_cruncher(IntradayCruncher::TestPipelineCruncher):
[echo] NameError: uninitialized constant INFO
[echo]
2007 Jun 14
4
How to convert a table to JSON (or to Javascript array)
Is there a way to retrieve an HTML table in javascript and convert it
to JSON using prototype?
I''m stumped :(
phil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To
2006 Jan 05
2
Rails 1.0 Crashing: Errno::EPIPE (Broken pipe):
Since we upgraded to Rails 1.0 and lighty last week we''ve had the rails
application crash daily with the following error in the production.log
file:
Errno::EPIPE (Broken pipe):
/usr/local/lib/ruby/1.8/mysql.rb:1042:in `flush''
/usr/local/lib/ruby/1.8/mysql.rb:1042:in `write''
/usr/local/lib/ruby/1.8/mysql.rb:462:in `write''
2006 Jan 29
2
GetText and rjs templates?
hi,
is it possible that gettext don''t work with rjs templates?
i''ve just tried this simple example
blog_controller.rb :
class BlogController < ApplicationController
def index
end
def dosomething
end
end
index.rhtml :
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<div id="test">Some text to change
2006 Jan 02
1
best way to detect drop down changes
So I want to have a form with a drop down that lists all our customers.
And when a user selects a customer, I want it to automatically list the
customer names emails below the drop down.
Anyone have any thoughts as the best approach to do this? I could just
write javascript, but it seems like there would be a rails tag for this.
thanks,
phil
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
1
Lighttpd/rails deployment error
I have been trying to get Lighttpd working.... we have been using
webrick, but want to move to a production quality web server. I
followed the instructions found here :
http://brainspl.at/pages/rails_stack
We are developing on windows and deploying to Fedora Linux. We''re using
rails 1.0. The build actually happens on the windows box and using ant
transfers the code to the Linux box.
2005 Dec 16
6
active record outside of rails
I really like how Active Record logs the SQL that is executed inside of
rails. Is there a way to get the SQL output when using Active Record
outside of rails?
Thanks,
phil
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 15
5
Rails vs. J2EE: Sharing state in memory?
Hi,
I am from a Java background and pretty new to Ruby and Rails.
What I am wondering is how I would shared state accross requests and users
without involving IO, i.e. use memory.
My current understanding is that for each request a new process ist spawn
and therefore it gets its own memory. So no sharing can take place between
requests?
Do I understand this right? For those who know
2005 Dec 18
7
Testing against 1.8.4
So apparently 1.8.4 is soon forthcoming. We need testing against it.
Could someone help out with that? I believe Ara already checked into
some of the issues, do you know if those are resolved, Ara?
--
David Heinemeier Hansson
http://www.loudthinking.com -- Broadcasting Brain
http://www.basecamphq.com -- Online project management
http://www.backpackit.com -- Personal information manager
2005 Dec 15
1
A way to handle looong executions?
Is there somewhere I can specify a maximum execution time for a given
request. (Eg, someone does something in my application that brings about
and infinite loop). The idea of potentially huge queries or even a
programmer mistake
is not impossible, and I have a hard time accepting that I will
release an
application that has no way of handling that.
2006 Jan 05
8
Repost - Do dynamic finders work with legacy schemas?
Hello everyone,
I have another question related to a legacy schema I am working with.
Do dynamic finders work with legacy schemas in general? The schema I am
working with uses hungarian prefixes for column names. For example fOpen is
0 if a bug is closed and 1 if it is open (type smallint). When I try @bugs
= Bug.find_all_by_fOpen(1), I get the following exception:
undefined method
2010 May 13
6
to "loop through" the instance variables of ActiveRecord?
to wrap each instance variable of an ActiveRecord object between "<td>"
and "</td>", is there a way to "loop through" them, at least in the
debug mode, no matter there is getter methods to get them or not, or at
least the ones with the getter methods?
Such as
<% @stories.each do |s| %>
<%= "<tr>" %>
<% s.each_property
2010 Sep 16
5
vestal_versions -- can I set it to ignore certain columns?
I''d like my published boolean to be excluded from the calculation as
to whether a version is created or not. Can anyone suggest a way to do
that?
Thanks,
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
2006 Apr 04
1
integration tests - 1.1
I?m using the new 1.1 integration test facility? I?m trying to write a
test that sees if a controller redirects to the correct place and
preserves the query string.
Here?s the code:
class LoginRedirectTest < ActionController::IntegrationTest
def test_non_admin_auth
request_uri = "/datafeed/event/report?blah=blah"
get(request_uri)
follow_redirect!
2006 Jan 13
1
REPLACE INTO with Active Record
Is there any support for MySQL''s REPLACE INTO syntax using ActiveRecord?
The only way I''m aware of to take advantage of this feature is to use
ActiveRecord.connection.execute.
thanks,
phil
--
Posted via http://www.ruby-forum.com/.
2006 Jan 19
4
multiple database in the same actions?
Hi,
I read the example in
http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases,
it show us how to connect to other database, each time
we start a new action, however, this doesn''t work
while you try to connect to two different database
within the same action.
SO I wonder is it possible to bind to two or more
database within the same action????
Thanks you very much
Saiho
2010 Mar 11
3
Define column names to a series of data.frames
Greets to the list!
I am aware that this topic has been discussed several times. And I've
read quite some related posts [1]. Yet, can't seem to give a solution to
my problem.
I have 6 data frames consisting of 6 rows x 7 columns put together from
other data.frames.
Something like:
a b c d e f g
v1 # # # # # # #
v2 # # # # # # #
v3 # # # # # # #
v4 # # # # # # #
v5 # # # # # # #
v6