[Rails] Can not determine issue in my factories with factory girl in rspec

2013-03-28 Thread Surya
on Stackoverflow: http://stackoverflow.com/questions/15674838/can-not-determine-issue-in-my-factories-with-factory-girl-in-rspec Thanks -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups

Re: [Rails] upload csv files in rails 3

2012-03-15 Thread Surya
. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: error display at the field is not working

2012-01-27 Thread naga surya
, Jan 25, 2012 at 04:34, naga surya surya.naga...@gmail.com wrote: i am not reflecting the error message at the field, what should i have to do to diplay the error as start time should be before end time. Probably your view is not checking for errors on the object.  You need code

[Rails] error display at the field is not working

2012-01-26 Thread naga surya
I had two fields in my form i.e start and end time fields, i am validating times but i am not reflecting the error message at the field, what should i have to do to diplay the error as start time should be before end time. please help me validate :valid_times def valid_times if start_time =

Re: [Rails] Saving url into database

2011-12-20 Thread Surya
. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Switch versions of Rails

2011-12-03 Thread Surya
-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya

Re: [Rails] how can I rewrite this route ?

2011-08-22 Thread Surya
from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you

Re: [Rails] Re: how can I rewrite this route ?

2011-08-22 Thread Surya
yves_duf...@mac.com wrote: thanks , That's better than what I did first, but is there any way to match to a specific name ( short_list, medium_list, long_list ) based upon the parameter 1, 2, 3 On Aug 22, 1:12 pm, Surya raj.sury...@gmail.com wrote: try to make it like this: match

Re: [Rails] Jquery to rails 3

2011-08-22 Thread Surya
options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] blog creation

2011-08-19 Thread Surya
, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options

Re: [Rails] Merge Attribute after Rails find query

2011-08-19 Thread Surya
?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group

Re: [Rails] Re: Merge Attribute after Rails find query

2011-08-19 Thread Surya
, Aug 19, 2011 at 2:18 PM, merbivore eshward...@gmail.com wrote: Yeah, Can we do that after find query that i mentioned above. I want to apply for all records that i got from find query. How can i do that ? On Aug 19, 1:43 pm, Surya raj.sury...@gmail.com wrote: In ruby if you have a hash

[Rails] How to make an AJAX call to different domains in Ruby on Rails 3.0

2011-08-13 Thread Surya
of _show.html.erb which I have on my sub domain. Many Thanks, Surya :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email

Re: [Rails] How to make an AJAX call to different domains in Ruby on Rails 3.0

2011-08-13 Thread Surya
hey Thanks for your kind response. So, what I should do to achieve the same?? Any idea? On Sat, Aug 13, 2011 at 6:29 PM, Walter Lee Davis wa...@wdstudio.comwrote: On Aug 13, 2011, at 6:08 AM, Surya wrote: I have an action email in my controller of application running on www.example.com

Re: [Rails] PROBLEM WITH PAPERCLIP

2011-08-07 Thread Surya
. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group

Re: [Rails] how to upgrade

2011-08-04 Thread Surya
. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Re: Actionmailer Help Needed

2011-07-29 Thread Surya
printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr

Re: [Rails] Im very new and having trouble

2011-07-19 Thread Surya
this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Problem in accessing bucket of my AWS S3 account

2011-07-05 Thread Surya
and other 2 to US Region. So, when I do this - AWS::S3::Bucket.find(bucket1) it shows me this error: AWS::S3::PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. from /home/surya/.rvm/gems/ruby

Re: [Rails] How to post wall in facebook from Rails 2.3.x

2011-06-20 Thread Surya
. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because

Re: [Rails] help with validations

2011-05-12 Thread Surya
/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from

Re: [Rails] Re: Problem in saving fields to database from csv using fastercsv

2011-03-25 Thread Surya
Thanks Frederick, I got it :) I did this: FasterCSV.foreach(path_to_csv, :col_sep = ';', :quote_char = ') do |row| Used row here! end And it removed ' from the string. On Sat, Mar 26, 2011 at 3:32 AM, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 25, 4:56 am, Surya raj.sury

Re: [Rails] Re: Problem in saving fields to database from csv using fastercsv

2011-03-24 Thread Surya
frederick.che...@gmail.com wrote: On Mar 24, 5:22 am, Surya raj.sury...@gmail.com wrote: So what could be the possible solution? I wasted my whole day trying to figure out the issue. But didn't get anything related with this :( convert the text to utf8 before you try and parse it. Fred

Re: [Rails] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Surya
So what could be the possible solution? I wasted my whole day trying to figure out the issue. But didn't get anything related with this :( On Thu, Mar 24, 2011 at 12:20 AM, Frederick Cheung frederick.che...@gmail.com wrote: On 23 Mar 2011, at 13:42, Surya raj.sury...@gmail.com wrote: Hi

Re: [Rails] create a form in rails

2011-03-16 Thread Surya
@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received

Re: [Rails] Re: Unauthorized Access

2011-03-04 Thread Surya
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Please consider the environment before printing this email. Regards, Surya -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Route mapping?

2010-12-09 Thread Surya
Hi, I am very new to Ruby on Rails. I am going through some books as reference. When I was running my app I mistaken place a letter like: localhost:3000/s and as there was no matching for s in my route.rb I get this error: Routing Error No route matches /s with {:method=:get} So, my question is

Re: [Rails] Route mapping?

2010-12-09 Thread Surya
It works. Thanks a lot. That's what I was looking for. On Thu, Dec 9, 2010 at 9:12 PM, radhames brito rbri...@gmail.com wrote: yes but be careful, if search engines recieve status 200 for something in you site that does not exist it will be indexed falsely as some thing that exist in you

Re: [Rails] Cant create project from cmd

2010-12-09 Thread Surya
If you are using rails 2.x version then your command should be: rails new Project_Name -d mysql and if it's rails 3 then type rails Project_Name -d mysql On Fri, Dec 10, 2010 at 1:47 AM, Tara Keane li...@ruby-forum.com wrote: I'm following instructions in a book and it says to enter the

Re: [Rails] Cant create project from cmd

2010-12-09 Thread Surya
deprecated in Rails 3. On Fri, Dec 10, 2010 at 12:15 PM, Surya raj.sury...@gmail.com wrote: If you are using rails 2.x version then your command should be: rails new Project_Name -d mysql and if it's rails 3 then type rails Project_Name -d mysql On Fri, Dec 10, 2010 at 1:47 AM, Tara Keane li

Re: [Rails] Re: I can't start Webrick

2010-12-07 Thread Surya
type rails -v in console to check its version. For Rails 3 (latest version) try this command: rails server On Tue, Dec 7, 2010 at 11:47 PM, Tara Keane li...@ruby-forum.com wrote: I downloaded the latest version of rails but I don't know how to check that... I did create a project already.

[Rails] DB Migration problem

2010-12-04 Thread Surya
:in `run' /home/faststream/Desktop/fstech Desktop [Surya]/projects/locorent/config/environment.rb:9 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support

Re: [Rails] Re: DB Migration problem

2010-12-04 Thread Surya
such a condition without reinstalling whole things related to rails. On Sat, Dec 4, 2010 at 7:13 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Dec 4, 8:59 am, Surya raj.sury...@gmail.com wrote: Hi, I am trying to migrate my project database on to other system. rakedb:create is working

[Rails] Re: Change field name of select_day, select_month ..

2010-02-19 Thread Andree Surya
Robert Walker wrote: Rails does that so it can reconstitute them into a date attribute properly. If you really want three separate parameters then why not just use regular select_tag helpers and give them whatever names you want, rather than fiddling with overriding the behavior of the

[Rails] Change field name of select_day, select_month ..

2010-02-18 Thread Andree Surya
Hi there, Functions like select_day, select_month, or select_year by defaults have a field name of date[day], date[month], and date[year] respectively. Well, I want to change it to be as simply as day, month, and year. Do rails have a built in function to do that? In the documentation, I found a

[Rails] JSON render problem

2010-01-24 Thread Andree Surya
Hi all, In my controller, I have an action to render JSON string containing current user's account information, except for his ID and hashed password. This is the snippet: # Fetch the account information of the current user def fetch_data record = User.find session[:user_id] render :json =

[Rails] Re: JSON render problem

2010-01-24 Thread Andree Surya
Conrad Taylor wrote: The above seems correct based on your render statement. What's the problem? -Conrad The data attribute should be an object, not a string. Let's compare the difference with the following snippet: render :json = { :success = true, :data = record # Without to_json