Displaying 20 results from an estimated 3000 matches similar to: "script/console on windows"
2006 Apr 02
2
Problem with edge rails
Hello,
When I am trying to run rake migration tasks, I get the error as shown
below. I am using ruby 1.8.4 and edge rails.
What am I missing or doing wrong?
C:\rails\temp1>rake db:migrate
(in C:/rails/temp1)
rake aborted!
no such file to load -- rails_version
Thanks for your help.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at:
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious
about how Ruby Web Dev was done prior to rails. Any veterans want to
share their insights?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 Jun 14
5
InstantRails Lost connection to MySQL server
Hiall,
I just tried out InstantRails version 1.3a. After a virgin install and
filling the fresh mysql db with my app schema, I tried runningthe app
with webrick, only to see the infamous "Lost connection to mysql
server" for every action. What is it that I''m doing wrong? I also have
mysql 5 installed on my machine, but the service is stopped while
experimenting with
2006 Feb 28
1
Cache Magic field for totaling
Hello,
Rails provide counter cache field for associations, I want a similar cache
for totaling up values
(say account_balance = sum_of_deposits - sum_of_withdrawals).
I was wondering if rails, already has another surprise in store for me, or is
there any plug-in or how-to for doing these kind of things.
Thanks.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read the
2006 Jun 19
2
Autocompleter enhancement feature request
Hello,
I have created a ticket for an enhancement of the autocompleter to show the
options immediately when the field gets focus. Right now at least one
character must be typed for autocomplete to kick in.
http://dev.rubyonrails.org/ticket/5435
I have also made some code changes directly in the script
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
2006 May 01
7
ActiveRecord and Database Views
Hiall,
If I have say 10 tables that i would like to wrap up in 1 view to
manipulate data inside these tables, do I then need 10 model.rb files
for all 10 tables plus 1 for the view, or do I just need 1 model.rb
file for the view ?
cheers
Martin
2006 May 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag
2006 Aug 10
1
IMPORTANT: Rails update 1.1.6
for those who didn''t read it somewhere else: the bug being adresseb by
1.1.5was not completely fixed, so now theres another security update:
http://feeds.feedburner.com/~r/RidingRails/~3/10954980/rails-1-1-6-backports-and-full-disclosure
anybody using engines, dont update since this update will break the plugin,
more info for fixing the bug in this case also in the blog.
--
Michael
2006 May 19
3
How to create a background task?
Hi All,
I''m a newbie for RoR. Now, I want to create a background task: send an email
at 6 pm every day. How can I create this task?
Thanks,
Rod Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060519/acde9ef9/attachment.html
2006 May 15
3
Page hit counter?
Hello all,
Yet another "don''t reinvent the wheel" n00b question:
Is there an ''official'' page hit counter plugin/code snippet/whatever? I
would need something like this:
- It is possibility to set a constant timespan (say 5 hours).
- On every page hit, save away @request.remote_ip and Time.new
- The counter gets incremented only if the same IP was here
2006 May 22
15
collection_select default selected value
Hiall,
Unfortunately I just can''t find out how to setup a default selected
value when using collection_select. My call is like so:
<%= collection_select(:consultant, :lastname, @consultants, :id,
:lastname, { :selected => @current_consultant.id } ) %>
which is not working, I debugged so far that I know that
@current_consultant.id contains the correct value.
Any tips?
cheers
2006 Mar 08
4
Creatulator: Before I go and make it myself, does this exist...
Basically, on thing that annoys me to no end is that I am constantly
having to add things to my model that could just be reflected out by
the active record. I use PortGres exclusivly, and I know that there
are ways to ask the database things like, "what is the primary key"
"what relation does this foreign key belong to" etc...
So what I am about to go and write myself is a
2006 May 14
6
file and directory layout below app/models
Hiall,
Is it possible to organize my model files below app/models into
subfolders? E.g. I would like to put admin related models into their
own subfolder. This kind of structuring works for controllers and
views (scaffolding creates the right subfolder-model mappings), but
app/models always stays flat. I''d really like to be able to group my
code into logical, well packages :-) Yes, I
2006 Aug 04
5
image_tag + ActionMailer
Hi,
Any idea why image_tag doesn''t work within an email template? I''m trying to
generate the URL for an image and I''m getting the following error.
undefined method `request'' for #<Mailer:0x6a719e0>
I''ve been able to use link_to but no luck with image_tag.
I''ve seen a similar post to this in the list but no one has posted a
response.
2006 Aug 11
5
Why does no one like render_component?
Maybe I''m missing the point?
Lets take for example albums of pictures. If I have a scaffold for
each, and I''m showing an album, what if I want to list all of the
pictures that are in the album?
Surely, I''d want to call the List action in the picture controller.
render_component would do this perfectly. But we''re told not to use
render_component. So
2006 May 09
3
Named link to image
Hiall,
Call me stupid if you like .,) but it seems i can''t figure out how to
get a named link using a combination of link_to and image_tag. What I
need is basically a link displaying a name along with some image to
indicate status (open,working,finished). I found no combination of
link_to and image_tag that accepts a name, this seems to be solely
used for making whole images into links
2006 Aug 07
7
mysql Date field not getting set correctly
I created a simple test to try and pinpoint my problem but nothing seems
clear to me.
I created a Thing model with fields { id (INT), date (DATE) }
now when I try to create a new "thing" the date does not get stored, and
no errors are reported.
@myNewThing = Thing.new(:date => "2006-08-07")
@myNewThing.save
this results in a new record with a date of
2006 Aug 10
11
Document Management System in Rails
Hi
Is anyone aware of any Document Management System in Rails. Googling didn''t
help me find any Rails based solution.
The DMS I need, need to have the following feature apart form the usual
ones.
1. Version control of documents.
2. Tracking version control for each group of users independently from the
other group . These groups may share the same document name but may have
different
2006 Jun 12
6
Storing "money" in databases
Hiall,
I''m wondering what''s common practice when dealing with money values
stored in databases. I like the idea of storing all the values as
integers, i.e. all the values in eurocents not euros. Then I need to
multiply all values the users enter by 100 before storing them in the
database. Now the question is, what''s the most efficient and dryest
way to do this?
2006 May 23
3
image_tag problem
Hiall,
I want to make an image_tag from within a controller in order to be
able to present a link (with a status image) in a view. Here is my
controller method (in file webca_controller.rb, hence WebcaController)
def untouched_status_image_tag
image_tag("open", { :alt => "Offen", :title => "Offen", :size =>
"12x12", :class =>