Displaying 20 results from an estimated 93 matches for "surendra".
Did you mean:
surendran
2007 Sep 04
2
specing helpers fails on restful routes
...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, http://www.kreeti.com
2006 Mar 01
5
rails models, logging and testing
...also automatically ?found? using
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"
...t 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 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 Jun 15
2
AJAX form inside table - error
...9;move''}) %>
<%= 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 18
5
acts_as_classifiable plugin
...or non-spam comments, Or maybe 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 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: 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 Apr 02
2
rails db indexing and through association
...false
table.column :picturable_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 Mar 21
8
How to avoid multiple submits/posts?
...owser''s Refresh button?
On Aughey''s advice in #irc I tried using `redirect_to'' a new `:action'' but
this approach doesn''t seems to work.
Any idea what might be wrong or how to tackle this problem?
Thanks for your help.
P.S.- I am using edge rail.
--
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 Jun 19
2
Autocompleter enhancement feature request
...se changes is that in an empty 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 Apr 03
5
rails migrations - enhanced usage
...nd other half not. Also, as the 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
`----
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 Mar 08
2
RJS - page object in helpers?
...flash_messages :textilize => 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)
`----
2010 Aug 15
1
unicorn behind apache with file uploads
...lly forced us to switch back to mongrel.
I know a fully buffering reverse proxy like nginx is advised as
reverse proxy for unicorn, but apache has been serving us well, and we
don''t want to change it.
Any idea what can be going wrong, or why was unicorn throwing these errors?
Thanks!
--
Surendra
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 27
4
Action Mailer - weird rendering issues
...AILS_ROOT}/app/models/thought_observer.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 Feb 21
4
Models, Helpers, Modules, etc.
...ther controllers from this class? 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 13
1
adding custom cache field
...end
end
end
end
module 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 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
Hello,
I was wondering 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
...I run ''ruby script\console'' 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
`----