similar to: Ruby Before Rails

Displaying 20 results from an estimated 2000 matches similar to: "Ruby Before Rails"

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 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 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 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 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 Mar 08
2
RJS - page object in helpers?
Hello, I am using RJS and Edge Rails and I was wondering if the page object should be available in helpers also. For example if I have a helper function def update_flash_messages page.replace_html ''flash_messages'', (show_flash_messages :textilize => true) page.visual_effect ''flash_messages'', :appear end and then in my RJS files I call
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
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 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 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
2007 Sep 04
2
specing helpers fails on restful routes
Hi, I am trying to spec helper methods in a Rails project, but it seems the specs fail with the error: You might have expected an instance of Array. The error occurred while evaluating nil.<< if the restful routes helper are used either in spec files, or the helper file. What can I be doing wrong? Or how can I fix this. Thanks! -- Surendra Singhi http://ssinghi.kreeti.com,
2006 Mar 01
5
rails models, logging and testing
Hello, I am using rails 1.0 and I have following questions. Please help me. [1] How can I do logging in the rails models? I checked the wiki but didn''t find anything which I explained how to do logging in models. [2] Say I have a certain model, when I declare a function in the model, and try to use that function from a view or a unit test, I get an error. For views the error occurs
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 Mar 13
3
"./blah/blah" vs. "/blah/blah"
Hello, Earlier in my rails application, I was using the convention of writing the following to refer to templates and/or views in the view folder. "./blah/blah" But in the Edge rail, it doesn''t work and the page doesn''t shows any output there is no error in the development log as well. But changing the above to "/blah/blah" seems to fix things. Was I
2006 May 18
5
acts_as_classifiable plugin
Hello, I am pleased to announce the availability of the plugin acts_as_classifier which allows using the ''classifier'' gem in a Rails application. This plugin can be downloaded from http://opensvn.csie.org/sksinghi/acts_as_classifiable/ This plugin is useful in scenarios where you want to distinguish between spam or non-spam comments, Or maybe you want to track the
2006 May 03
7
anybody using GoDaddy for hosting ?
Is anybody hosting with GoDaddy.com? I''m about to set up a hosted account for my RoR app and see that they''re now offering RoR hosting. I''d really appreciate hearing from anybody who''s tried them for RoR. Any congrats / complaints / etc. you had / are having would be really appreciated! Thanks, Bill -------------- next part -------------- An HTML attachment
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 15
2
AJAX form inside table - error
Hello, I need to put an AJAX, form such that it is inside a table, and spans across few rows. But, what I am noticing is that, while submitting the form, the data in the fields is not submitted. If I move the form outside the table or inside a cell, things work OK, but not when the form is inside the table and spans few rows. This problem is only with AJAX forms, regular forms work perfect. I
2006 Feb 21
4
Models, Helpers, Modules, etc.
Hello, I am learning rails and ruby and I have some questions about how should I go about doing certain things. [1]Many of my models have some functionality which is common, and instead of duplicating it across models, I want to store it in a single file, and then import the file into the models. Should I do this using modules, and then store them in the `lib'' directory? What is the