Displaying 20 results from an estimated 3000 matches similar to: "A dumb question on extracting a value from a hash"
2006 Feb 24
6
[JOB] at yakimaherald.com
Friends-
I have taken a new job and will be moving at the end of March. The
newspaper I currently work for is looking for someone to take my
place. I have really enjoyed working here. It is a great environment
with very nice people to work with. And the best part is you get to
develop in Ruby and Rails, for everything!
The paper is willing to accept applications from people who would
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello
At the start of October, Duane Johnson announced the Query mixin plugin on
this list. The code was attached to the announcement email. Unfortunately,
I''ve not been able to locate the attached code. Goggle has not helped me
this time. Could somebody forward it to me?
Thanks in advance
Harvey
This e-mail has been scanned for all viruses by MessageLabs.
2006 Jan 10
5
problems overriding module with plugin
Hi I am trying to create a plug-in to fix the error in the rails core
produced by the multiple delete on a HABTM relationship. I have
confirmed that my plug-in is being included into the base during
runtime however the code does not seem to be overridding the base
class.
module ActiveRecord
module Associations
module ClassMethods
def has_and_belongs_to_many(association_id, options =
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list,
I have an app that has a very simple authorization scheme. A person can have
many roles and roles can have many people.
In my app, I''d like to do
before_filter :login_required (since no role name is provided, it accepts
any users with credentials)
before_filter :login_required ("administrator") (only accepts those with
role administrator)
before_filter
2006 Feb 15
10
STI Question
Hi everyone,
I have 3 types of people (for now):
Staff
Faculty
Students
To break them up into classes, but keep them in the same People table,
I''ve broken them up like so (code and ''ends'' snipped):
class Person < ActiveRecord::Base
class Employee < Person
class Staff < Employee
class Faculty < Employee
class Student < Employee
So, when I insert
2006 Jan 23
8
OT: Problem rotating logs with lighttpd
Hi everybody,
this is a little OT. We are using Lighttpd as a webserver for Rails.
Our problem is that when we rotate the logs everyday at the end of the
process, lighttpd stops writing the logs. To solve this we have to
restart the server manually each time.
We use a common Debian, lighttpd-1.4.7, Rails 1.0 and fcgi-2.4.0.
I have tracked the lighttpd bugs, and I haven''t found
2006 Mar 14
5
Maddening library loading problem
Hi everyone.
I recently wrote a nice module that I want to use in my rails app. It
consists of a few files in a directory that I have places in the lib
directory. It looks like this:
/lib/KMLTools/foo.rb, bar.rb, baz.rb
Some of these files load each other and I finally got those to work by
using the File.dirname(__FILE__) trick. When I simply require the file
into my controller, everything is
2006 Jan 06
8
How do I write a generator?
I''d like to take some advice and write a generator to change the
scaffold.css. How do I do that? I looked on the wiki and googled it
but have not found anything yet.
Any help would be much appreciated.
bruce
2006 Jan 11
8
Enterprise Rails Apps
Is there a place I can get a list of "enterprise" Rails applications?
Apparently, even though I''ve looked at the wiki and cited the examples
there, there are some at my organization who still can''t find proof that
Rails is usable in an enterprise setting.
Would you fine folks be able to tell me about some large-scale projects
that could be classified as
2006 Feb 28
5
List and update installed gems?
Hi, could someone tell me how to list and update the currently
installed gems on my rails installation?
Thanks in advance,
-Conrad
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends-
I am almost finished with a custom live cd called Rubuntu ;-) This
is an ubuntu live cd variant that comes preloaded with ruby and rails
developers in mind. I already have it working with all the basics but
I was wondering what extras people would like to see on this distro.
What editors with what configurations?
What other tools do people really like for rails development on a
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and
2006 Jan 31
3
Random 502 Bad Gateway
I have moved my project to a dedicated server and I am getting a very
annoying behaviour.
I am able to view the site just fine when using the ip.
The name is properly resolved on my computer, however I am getting
"Bad Gateway The proxy server received an invalid response from an upstream
server."
This is simply random. The site works for several minutes, then i get this
message for some
2006 Jan 09
9
Noob, installing rails on a goDaddy virtual server?
Hi,
I''m completely new to all of this. Not even certain this is an
appropriate forum for an installation question.
I''m just about to plunk down some money to get a virtual server. In
looking over the list of isp''s elsewhere on this site, goDaddy isn''t
mentioned - probably because they don''t offer rails as a standard
distribution. There are some
2006 Feb 16
9
calling a controller/action from another controller
Hi,
Is there a way to call a controller/action pair from another controller
as well as render the view for that pair? I have tried using "render
''ctrl/action''" and that works, but the controller code isn''t called
(only the view is rendered). A redirect_to isn''t desirable either as I
want the resulting content to be rendered in the current
2006 Feb 22
2
accessing an attribute within an embedded object
When I dump an instance variable to the web browser using object.inspect
I get the following:
This:
<%= debug archive.inspect %>
Yields this:
#<RapturePost:0x2aaaacada118
@attributes={\"date_created\"=>\"2006-02\"}>"
How do I access that date created value?
Neither of the following work. The don''t give me the actual date value,
only nil or
2006 Feb 24
8
Ruby site structure on Apache
I use a hosting company,it use appache for RoR
I test a ''hello word'' code here
http://www.smtservers.com/demo/
I can see the working code here
http://www.smtservers.com/demo/public/say/hello
My question is how to short the url like
http://www.smtservers.com/demo/say/hello.I do not like public always in
URL
Thanks for help
Mark
--
Posted via http://www.ruby-forum.com/.
2006 Feb 03
2
acts_as_tree counter_cache behavior is different than API docs
Before I file a ticket, I''ll query ya''ll about this:
The API docs for acts_as_tree''s counter_cache is to create a database column
called "children_count" to hold the counter_cache. I have enabled this
option in my model. While writing tests I wrote a test for creating children
from the a parent:
message = @forum_message["parent"].find
child =
2006 Jan 09
19
Need help PLEASE
I have just taken on a new site and they were running ruby on rails for
their store. I have finally found the database but I cannot get the
store to work. I can''t even get it to show up. I have never used this
software before and have no idea where to start. All I know is the
client was upset when I told them we wou;ld have to start a new store.
They apparently have a few hundred of
2006 Jan 26
2
Run fastcgi in Apache 1.3, or proxy through lighttpd?
I''m working with a guy who has Apache 1.3 installed on his server, and
it''s not an option to simply use lighttpd for a Rails application I''m
helping him with. I''ve seen that Apache 2 apparently is crappy when
it comes to fastcgi, but 1.3 isn''t so bad. I can then either just run
my app straight in Apache, or I could proxy it through to lighttpd.
Which