search for: kreeti

Displaying 20 results from an estimated 86 matches for "kreeti".

2007 Sep 04
2
specing helpers fails on restful routes
...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, http://www.kreeti.com
2006 Feb 21
4
Models, Helpers, Modules, etc.
...s? Or again use modules to do so? [2]How can I provide an alternative name for a column in a model. alias_method :new_column_name, :old_column_name provides a new name only for the reader method, I want this to be done for the writer also. Thanks for your help. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read the latest news at: http://news.kreeti.com ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
2006 Mar 01
5
rails models, logging and testing
...g an Active Record finder method and put in an instance variable named for the fixture." But when I am trying to repeat this I am getting errors, am I missing something or doing something wrong or have other people also experience the same problem? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read the latest news at: http://news.kreeti.com ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
2006 Mar 13
3
"./blah/blah" vs. "/blah/blah"
...9;'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 wrong in using the earlier convention or is something else amiss? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
2006 Apr 02
2
Problem with edge rails
...g 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: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----
2006 Feb 28
1
Cache Magic field for totaling
...tions, 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 latest news at: http://news.kreeti.com ,---- | "O thou my friend! The prosperity of Crime is like unto the lightning, | whose traitorous brilliancies embellish the atmosphere but for an | instant, in order to hurl into death''s very depths the luckle...
2006 May 18
5
acts_as_classifiable plugin
...you want to track the preferences of each user and then based on that make suggestions to them, etc. More information + example on this can be found at: http://cuttingtheredtape.blogspot.com/2006/05/actsasclassifiable.html Any issues/questions let me know. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
2006 Mar 08
2
RJS - page object in helpers?
...true) page.visual_effect ''flash_messages'', :appear end and RJS file update_flash_messages page Notice the passing of `page'' object. Will it not be convenient if Rails does it automatically. Or am I missing something? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----
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 19
2
Autocompleter enhancement feature request
...field it is not possible to select an item from the drop down by clicking on it. (using arrows and tabs work fine). Please help me implement this feature. What am I doing wrong or missing in my implementation, which causes me to face the above problem? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----
2006 Jun 15
2
AJAX form inside table - error
...<%= hidden_field_tag ''member_id'',10 %> <tr> <td ></td> </tr> <%= submit_tag "Save", :class => "button" %> <%= end_form_tag %> </table> Thanks for your help. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
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 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?
2006 Jul 20
1
Model CRUD via web services
...ndering if there was any automated (may be scaffolding) way of exposing Model CRUD via web services. I found this ticket for django, but nothing for Rails. http://code.djangoproject.com/ticket/115 Thanks in advance for your opinions and suggestions. Regards. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
2006 May 04
1
Switching to production mode
...sole'' it says loading development mode. Also, the webrick sends log messages to development.log file instead of production.log, from which I can guess that it is in development mode. Any hint or clue on what might I be doing wrong. Thanks for your time. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
2006 Apr 02
2
rails db indexing and through association
...urable_type, :string, :limit => 10, :null => false end add_index :pictures, [:picturable_type], :name => "pictures_index_picturable_type" add_index :pictures, [:picturable_id], :name => "pictures_index_picturable_id" -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
2006 May 04
2
Is there a way to version the contents of a table as a set?
I am looking at using acts_as_versioned to manage revisions of data in several tables in my application. However, the default behavior of acts_as_versioned appears to apply to individual rows within a table. The tables I want to version are complicated lookup tables and what I really want is to version the entire contents of each table as a single set. Adding a row, deleting a row, or updating
2006 Jun 27
4
Action Mailer - weird rendering issues
...bserver.rb:17:in `after_save'' #{RAILS_ROOT}/app/models/thought_observer.rb:5:in `after_save'' The line 17 of thought_observer.rb contains ThoughtNotifier.deliver_share_notification(thought,user,notification.notification_code) Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
2006 Mar 13
1
adding custom cache field
...ActiveRecord #:nodoc: class Base class << self # Class methods def modify_value(total_name, id, value) update_all "#{total_name} = #{total_name} + #{value}", "#{primary_key} = #{quote(id)}" end end end end -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
2006 Apr 03
5
rails migrations - enhanced usage
...schema number is changed, so things cannot be rolled back. Is there any way to make the entire migration action atomic, i.e., everything or none at all? Also, while dropping tables how can I determine whether a particular table exists in the database? Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----