[Rails] Rack error

2009-09-18 Thread Preethi Sivakumar
Hi I've just started exploring about rack and created by config.ru file under config folder in my application. when I try to run the rackup command, I get an error saying Configuration config.ru not found. I've just written these three lines in my config.ru file

[Rails] Re: Rack error

2009-09-18 Thread Preethi Sivakumar
Gourav Tiwari wrote: I would say http://rack.rubyforge.org/doc/SPEC.html and http://rack.rubyforge.org/doc/ will be helpful. -Gourav On Sep 18, 11:39�am, Preethi Sivakumar rails-mailing-l...@andreas- Thanks Gourav. That was of good help! -- Posted via http://www.ruby-forum.com

[Rails] Re: Errno::EINVAL

2009-09-07 Thread Preethi Sivakumar
://twitter.com/abhinav On Mon, Sep 7, 2009 at 10:04 AM, Preethi Sivakumar Thank you Abhinav Lemme try with that. -Preethi -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Errno::EINVAL

2009-09-06 Thread Preethi Sivakumar
Hi , I'm getting this error Errno::EINVAL in Home#home_page where home_page contains periodic_remote_call The error is shown in the line %= myblogpost_homepage.created_at.strftime '%d' %sup%= date_to_ordinal(myblogpost_homepage.created_at.strftime '%d') %/supnbsp;%=

[Rails] Re: How to restart an app under Passenger

2009-06-22 Thread Preethi Sivakumar
Avram Dorfman wrote: Hello, I'm running a rails app on Dreamhost, which uses Passenger. Sometimes I have a very tiny change to make in my code, and have it take effect immediately. However I can't figure out how to trigger Passenger to realize that I've changed my code. The only thing I

[Rails] JQuery Ajax problem=Weird- works once stops next

2009-04-24 Thread Preethi Sivakumar
Hi, I'm facing a weird problem with jquery and ajax calls. I've a page which has a search box and also a listin which says join. Search uses Ajax calls. Join uses jquery call which opens a thickbox. for the first time when page is loaded, thickbox works perfectly. But after i do search and

[Rails] Re: JQuery Ajax problem=Weird- works once stops next

2009-04-24 Thread Preethi Sivakumar
Preethi Sivakumar wrote: Hi, I'm facing a weird problem with jquery and ajax calls. I've a page which has a search box and also a listin which says join. Search uses Ajax calls. Join uses jquery call which opens a thickbox. for the first time when page is loaded, thickbox works

[Rails] application.html.erb problem

2009-04-20 Thread Preethi Sivakumar
Hi, This may be a silly question to ask. But as performance issues start popping up I had no other go other than searching for a solution. I've application.html.erb where i've defined the layout of my whole project, where i've so many db calls and everything which is a one time call that must

[Rails] Re: application.html.erb problem

2009-04-20 Thread Preethi Sivakumar
? On Apr 20, 1:33?pm, Preethi Sivakumar rails-mailing-l...@andreas- Thanks for your response. But, Am not making any db calls from view. I've helpers for everything which renders some tabs for user depending on his view. The queries for fetching the permissions that the person has and everything

[Rails] Rails, Jquery, Pagination form submission

2009-04-06 Thread Preethi Sivakumar
Hi, I'm having a page in which i'm listing a list of profiles with pagination(done in Jquery).(see the attachment) I'm having a delete option in my page which has to take all the checked rows i'm selecting(irrespective of in which page i'm submitting from) The issue is that, when i'm doing

[Rails] Re: Rails, Jquery, Pagination form submission

2009-04-06 Thread Preethi Sivakumar
Shree Jay wrote: Preethi, you can set the attribute name to the check boxes as ids of the record, when you click on to the checkboxes and press delete, you can collect the ids and delete them! Regards Shree On Mon, Apr 6, 2009 at 3:02 PM, Preethi Sivakumar Thanks Jay Yes, My

[Rails] JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Hi, I'm having a search form which renders a table of search results. The search box is doing an ajax call. In my search results, i've JQuery scripts written for sorting and pagination and some other operations that i do with the table. The issue is, I'm not able to have ajax and jquery calls

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Dharmdip Rathod wrote: jQuery.noConflict(); jQuery(document).ready(function($){ }); write this in javascript file from where you are callin function. Thanks Raghod :) I've added jQuery.noConflice(); in my application.html.erb and the second chunk of code is added in my file where i'm

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Preethi Sivakumar wrote: Dharmdip Rathod wrote: jQuery.noConflict(); jQuery(document).ready(function($){ }); write this in javascript file from where you are callin function. Thanks Raghod :) I've added jQuery.noConflice(); in my application.html.erb and the second chunk of code

[Rails] How to create LOV list of values

2009-03-04 Thread Preethi Sivakumar
Hi, I want to select some users from 'n' number of user, where, right now I'm using textboxes which take search criteria and populating a list box. I want to replace the whole thing with an LOV(list of values) feature wherein I can have just a search button which will popup a window and take my

[Rails] has_many :through relationship in polymorphic associations

2009-02-27 Thread Preethi Sivakumar
Hi, I'm facing an issue in polymorphic associations when i try to to :through relationship. I've three models:profile,gbluser,community profile.rb - belongs_to :node ,:polymorphic = true belongs_to :community,:class_name = community, :foreign_key =

[Rails] Re: Soft delete in HABTM tables

2009-02-22 Thread Preethi Sivakumar
Matt Jones wrote: The has_and_belongs_to_many stuff works, but it isn't capable of expanding. For example, if you wanted to add the kind of 'soft delete' you were thinking about at the beginning, habtm wouldn't work. With has_many :through, you can add the flag to ProfileUserMapping and

[Rails] Re: Soft delete in HABTM tables

2009-02-19 Thread Preethi Sivakumar
Andrew Porter wrote: Preethi Sivakumar wrote: I'd question your theory that deleting a row from a join table is significantly slower than updating a status on it also. Having a status means that status will need to be part of both foreign keys' indexes as you will be accessing the join

[Rails] Re: Soft delete in HABTM tables

2009-02-19 Thread Preethi Sivakumar
Andrew Porter wrote: Preethi Sivakumar wrote: Instead of accessing user.profiles (as simply as that) you are going to always have to introduce a condition (or use named_scopes but ultimately the same condition is there). This is complicated more so because your condition needs to test

[Rails] Re: Soft delete in HABTM tables

2009-02-19 Thread Preethi Sivakumar
not sure how to set that up. --Matt Jones On Feb 19, 2:17?am, Preethi Sivakumar rails-mailing-l...@andreas- Thanks for your tips Jones. So, do you mean to say that, if I want to use a join model i've to use it using has_many and through relationship? if I'm not wrong, should it be like

[Rails] Soft delete in HABTM tables

2009-02-18 Thread Preethi Sivakumar
Hi, I'm having a HABTM relationship between profiles and users where User and Profile are having a many to many relationship. -- User Model: has_and_belongs_to_many :Profiles Profile Model: has_and_belongs_to_many :Users

[Rails] Re: Soft delete in HABTM tables

2009-02-18 Thread Preethi Sivakumar
MaD wrote: how would you access that attribute (rowstate), if you don't have a model for it? what exactly do you mean by softdelete? why not leave it to rails to delete the rows whenever you unaasign a user from a profile? I dont want to delete any rows from the mapping table as,