Displaying 20 results from an estimated 35 matches for "gerret".
Did you mean:
ferret
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of
file_column actually sees this. I was wondering if there were any plans to
allow some configurability in the file_column plugin. By configurability I
mean allowing the developer to define which table column is used as the
unique identifier when creating image folders. Right now it seems like it
uses the ID of the
2006 Feb 03
6
Rails from the command line
I have controller that processes data in one table and puts results in
another. Now that its'' working, I would like to be able to run it from the
command line ( read: windows batch file). How can this be done?
It will be installed on a Windows box with InstantRails1.0, (if that
matters).
I will be doing more processes like this, so this is a good opportunity to
get it right.
--
Best
2005 Dec 23
10
Extending model
Hi,
I''m looking for a way to extend one of my models to allow some level
of abstraction between what goes into it and how it is stored.
For example, say I have a Product and I want to set it''s price. A
person using the website will type the price in euros. Internally, I''d
like to store the price as an integer value of cents.
I can currently do this with some ugly code
2006 Feb 04
3
I just can''t figure it out !
Howdy RailsWarriors,
Its probably dead easy but I don''t see it.
Got this in my controller.
def new_computer
User.find(params[:id]).computers.create(:comp => ''New Comp:'')
end
Which with an .rjs template creates a div at the bottom of my list.
This all works like a charm.
But in the partial I load in my rjs I also have a button for ''delete'' in
the
2006 Jan 31
6
How to Affect Plugin Load Order
I''m using bundled_resource, login_engine, and a few other plugins. It
appears Rails considers plugins in alphabetic order. Turns out that
there is a particular order that will work and alphabetic ain''t it.
The login engine must be loaded first. Bundled resource then includes
''application_helper'' and the application helper includes LoginEngine. If
2006 Jan 30
2
:condition not being applied
I am using acts_as_taggable and everything seems to be working except that
:condition => "tags_resources.portal_id=#{portal_id}"
is not being applied.
@resource_pages = Paginator.new self, Resource.find_tagged_with(:any => tag, :condition => "tags_resources.portal_id=#{portal_id}").length, 25, @params[''page''];
@resources
2005 Dec 15
2
Passing parameters to before_filter methods
I have a method that checks for a given role. I want to write
something in my controllers like
before_filter :check_roles(''admin'')
Which will ensure the current user has the admin role. Is it possible
to pass parameters in this way?
Ian
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All:
I''m writing my 1st Rails app and I can''t seem to find the answer on
the web or in the book.
I''m making a table, and I want to be able to expand a filename. The
code is basically as as follows below. In the last <td> entry, I want
to call an action and pass in the test_results_path, which I will go
and read a file and munge the data for a separate
2005 Dec 16
4
Adding extra value to an object
Hello friends ,
I have a clear method here ::
def create
@invoiceitems = Invoiceitems.new(params[:invoiceitems])
@invoiceitems["invoice_id"] = params[:id]
if @invoiceitems.save
flash[:notice] = ''Invoiceitems was successfully created.''
redirect_to :action => ''new'',:id => params[:id]
else
render :action =>
2004 Sep 10
1
Off Topic: Thanks to all flac developers!
Thank you all for working so hard to create FLAC. You guys are incredible!
Sorry for posting to the dev list, but I couln't find any emails.
Gerret Swearingen
Houston, TX
2005 Apr 20
4
acts_as_list and single table inheritance
in a single table inheritance model, rails will automatically set the
scope for acts_as_list to the ''type'' field as well as any other scope
conditions we provide.
Is there a way to disable this? i want to use STI but I want
acts_as_list to disregard the class type when getting/setting
positions.
thanks
alan
2006 Jan 28
1
RailsCron 0.2 questions
...d, and it seems to work. Am I inadvertently breaking something?
Why the ''sudo''?
3) When a rails_cron process is started, "ps" doesn''t list it for me.
"ps a" does. Should I expect simply "ps" to work (as its written in
startup.rake) ?
cheers
Gerret
2006 Feb 02
4
ajax insertion into a form
After an ajax insertion in the dom, it seems the browser don''t
refresh its knowledge of the page.
The source of the page is identical after the insertion, whereas the
display is correct.
The ajax insertion is used to add an input field. The added fields
are ignored by the submission of the form.
Isn''t it possible to do that, or maybe there''s a problem in my code
2006 Feb 05
30
Emacs rails.el
Features:
* Management WEBrick - start, stop
* Viewing log files
* Abbrev from TextMate
* Switching between View/Action
http://www.emacswiki.org/cgi-bin/emacs/rails.el
2005 Dec 27
3
What is the best way of setting up the following model:
Hi, I am new to Rails (and Ruby) and for what i have seen sofar i like
it a lot! But i can''t figure out what the best sollution would be for
the following:
Lets say i want to setup a CRM system and i have to sorts of contacts:
Customers and Prospects. A part of the info is the same (addresses,
company info etc) for both customers an prospects and a part is
different.
What i would
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory.
If I change the module, the changes are not visible to the application
when i releod the web page (i am in the development evironment).
I must restart the web server (WEBrick) and so i see the changes... but
I lost more time.
How can I reload the module in the dirictory lib, without reload
WEBrick?
Thanks so much
--Reis
--
Posted via
2005 Dec 22
11
rforum engine
...ApplicationController to RForumApplicationController, and not
RForum::ApplicationController. I did try, but broke localization in
the process. Any reason why this shouldnt work?:
module RForum
class ApplicationController < ActiveRecord::Base
include RForum::Localization
end
end
cheers
Gerret
cheers,
Gerret
2006 Jan 04
5
check if a file exists?
Hello all!
I have a list of people on a page, and some of this people have pictures
of them stored on the web server. So I have an image tag like this on my
page:
<%= image_tag "/images/people/" + person.pers_id.to_s + ".jpg" %>
But not all have a picture, so if the file for pers_id=1899 does not
exist, i would like to display a custom image for that guy.
How can I do
2005 Dec 15
4
Order of tests matters???
I have a problem with tests. I always thought that the order of tests doesn''t
matter because the fixtures are reloaded before every test method. However, I''ve
just discovered that this isn''t true.
This is a quote from the "Guide to testing the rails" howto:
"... if we had another test method, we wouldn’t have 10 users on the 2nd test
because they would
2006 Jan 19
10
Where to place uploaded files for later download?
Hi there,
I am working in a RoR application which allows certain users
to upload files. Currently I store these files
in a directory called "files". This directory is located in
the RoR application directory:
rails/rails_application/files
So users don''t have access to them.
Now I want users to be able to download some of these files
(they will search based on some