[Rails] nginx deployment

2010-10-26 Thread Tushar Gandhi
Hi, I have deployed my rails application using nginx module. It is running successfully but my problem is whenever I am restart/start the server I am getting following warning [warn]: conflicting server name localhost on 0.0.0.0:3000, ignored My nginx.conf file is as follows:- #user nobody;

Re: [Rails] nginx deployment

2010-10-26 Thread Dhruva Sagar
Hi, You have 2 servers to listen on the port 3000 in the config, thats the problem imo -- Thanks Regards, Dhruva Sagar. On Tue, Oct 26, 2010 at 11:35, Tushar Gandhi li...@ruby-forum.com wrote: Hi, I have deployed my rails application using nginx module. It is running successfully but my

Re: [Rails] nginx deployment

2010-10-26 Thread Dhruva Sagar
Hi, As you can see, the second server to listen on 3000 has been given the server_name localhost. Nginx is ignoring that config since it can't listen on the same port twice. -- Thanks Regards, Dhruva Sagar. On Tue, Oct 26, 2010 at 11:38, Dhruva Sagar dhruva.sa...@gmail.com wrote: Hi, You

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread bingo bob
Now I'm firmly back in the rails world here, any kind soul give me a pointer as to how I might finish this one. I figure I need to modify the routes file and perhaps conditionally modify the rails app home root based on domain - what else? -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread Dhruva Sagar
I think you should run different rail apps on different ports and use Nginx to proxy to them. That should be simple enough. -- Thanks Regards, Dhruva Sagar. On Tue, Oct 26, 2010 at 11:57, bingo bob li...@ruby-forum.com wrote: Now I'm firmly back in the rails world here, any kind soul give

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread bingo bob
Multiple apps is definitely not what I wish to do here. It's a single app. -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com.

Re: [Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread Dhruva Sagar
Oh well if that is the case then you can probably check the current domain / request.url in a before_filter inside application_controller and work accordingly thereafter, that should be simple enough too... -- Thanks Regards, Dhruva Sagar. On Tue, Oct 26, 2010 at 12:32, bingo bob

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread Owain
A quick look and the following points: - you are not scoping your property_id to the domain. If you go to http://chaletcordee.co.uk/properties/1 you can change to properties 2 in the domain controller and you pick up the other property. Your application controller should set an instance

Re: [Rails] Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Peter De Berdt
On 25 Oct 2010, at 17:34, Marnen Laibow-Koser wrote: Not perfectly, perhaps, but as well as possible. I am not sure that providing HTML 5 markup meets that goal. However, I haven't yet done much research about older browsers' support of HTML 5. I think the poster meant something like: I

Re: [Rails] Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Rimantas Liubertas
...or not.  Yes, of course it's fine to use new attributes that older browsers will ignore.  However, HTML 5 differs from HTML 4 not just in its repertoire of attributes and elements, but also *in its basic syntax* -- HTML 5 is no longer a subset of SGML as HTML ≤4 is.  That's he part that

[Rails] Re: Create super-simple adding application

2010-10-26 Thread Frederick Cheung
On Oct 26, 3:18 am, debalmoto debalm...@gmail.com wrote: Ok, so I figured out what was causing the error, I wasnt calling params[:number_one] in the right place. Fixing this took care of the error. Now I can call them in my controller like so: @a = params[:number_one].to_i @b =

[Rails] Validating model depending on controller action

2010-10-26 Thread Alfredo Bonilla
Hi, I have a custom validation in my model, reviewing the content of some field. This field indicates that the record is closed, so it can not be modified. The only way to reopen the record is by executing an specific model action: reopen. So my question is: how can I avoid to validate this

[Rails] Trubelshooting MS Sql database connection

2010-10-26 Thread Fredrik TiC Jansson
Hello i have been atempting to move a project from sqlite database to a sql server database with absolutly no success. i am now going to document my entire process so that mabey someone can se the error of my ways. And if some one else has this problem this migth act as a troubleshooting guide.

[Rails] AssociationTypeMismatch

2010-10-26 Thread Sem Ptiri
I have a very simple pairing scenario that links a pair to two items (cross-comparison and rating). My problem is that on insertion of the pair I get an AssociationTypeMismatch error, that I haven't seen before. class Pair ActiveRecord::Base has_one :flag has_one :item_1, :class_name =

[Rails] Re: Validating model depending on controller action

2010-10-26 Thread Frederick Cheung
On Oct 26, 9:36 am, Alfredo Bonilla li...@ruby-forum.com wrote: Hi, I have a custom validation in my model, reviewing the content of some field. This field indicates that the record is closed, so it can not be modified. The only way to reopen the record is by executing an specific model

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread bingo bob
Inline - I won't have a chance to test this out until a little later but yes - thanks for this, think I'm getting it. Owain wrote in post #957124: A quick look and the following points: - you are not scoping your property_id to the domain. If you go to http://chaletcordee.co.uk/properties/1

[Rails] Re: Problems when connecting to Sql server 2008 odbc no such file to load error

2010-10-26 Thread Fredrik TiC Jansson
Windows server 2003 the app was originally developed on OSX snow leopard using just sqlite3 and i sucessluffy migrated it and got it running without a hitch on win server 2003 but i have to get it working with SQL sever 2008 for production purposes (sqlite3 just wont cut it) On 25 Okt, 17:37,

[Rails] Re: Validating model depending on controller action

2010-10-26 Thread Alfredo Bonilla
Frederick Cheung wrote in post #957145: On Oct 26, 9:36am, Alfredo Bonilla li...@ruby-forum.com wrote: controller reopen action? Models (quite rightly) have no concept of controller actions. If you want to do this then you have to change some of the model's state (eg set an instance

[Rails] Need LAMP Development Lead: Location: New Delhi: Exp: 5+ Yrs exp..

2010-10-26 Thread Arudreya Thapliyal
Hey All, I need a LAMP development lead for one of my clients. Please email me at arudr...@gmail.com or call me at +91-9811140115 for detailed Job Description and client details.. Regards, Arudreya Thapliyal -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Validating model depending on controller action

2010-10-26 Thread Frederick Cheung
On Oct 26, 10:21 am, Alfredo Bonilla li...@ruby-forum.com wrote: Thanks for your answer. I would use the instance variable, but if my code in the model looks like: validate :minutes_editable ... def minutes_editable   if minutes_closed_was         errors.add(:minutes_closed, specifies

[Rails] Re: Validating model depending on controller action

2010-10-26 Thread Alfredo Bonilla
Frederick Cheung wrote in post #957158: On Oct 26, 10:21am, Alfredo Bonilla li...@ruby-forum.com wrote: end end where minutes_closed is the boolean field that just can be passed from true to false by executing the reopen action. Sorry not sure what you're asking now How would you use

[Rails] Re: AssociationTypeMismatch

2010-10-26 Thread Sem Ptiri
class Pair ActiveRecord::Base belongs_to :flag belongs_to :item, :class_name = 'Item', :foreign_key = 'item_1', :validate = true belongs_to :item, :class_name = 'Item', :foreign_key = 'item_2', :validate = true end seems to fix the problem. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: AssociationTypeMismatch

2010-10-26 Thread Frederick Cheung
On Oct 26, 9:43 am, Sem Ptiri li...@ruby-forum.com wrote: What am I missing or doing wrong on trying to create the new pair? pair = Pair.new(:item_1 = 606276291, :item_2 = 92386) ActiveRecord::AssociationTypeMismatch: Item(#70065549615160) expected, got Fixnum(#70065601288820) It's

Re: [Rails] Trubelshooting MS Sql database connection

2010-10-26 Thread Rodolinux
On Tue, Oct 26, 2010 at 5:41 AM, Fredrik TiC Jansson fredrikjansson1...@gmail.com wrote: Hello i have been atempting to move a project from sqlite database to a sql server database with absolutly no success. i am now going to document my entire process so that mabey someone can se the error

[Rails] [JOBS] Ruby on Rails developer needed

2010-10-26 Thread tommg
We are a small, hard-working company looking for a great developer who can help us out with our current and future projects. We are using Ruby (v1.8.7 - v1.9.2) and Rails (v2.3.8 - v3.0.1) for our internal and external applications. You must have experience in working professionally using Ruby and

[Rails] Unable to rrun script/console for newly created project

2010-10-26 Thread Eugen Ciur
Hello Rails community, I create a new project with rails 2.x.y. rails micro_project Then cd micro_project An then I try to enter into console: script/console and rails throws following ugly error:

[Rails] rake gems:install without rdoc documentation

2010-10-26 Thread Eugen Ciur
Hello ruby community, By default when I run rake gems:install rake install missing gems altogether with rdoc documentation. Manually I can install gems without rdoc documentation like this: gem install factory_girl --no-rdoc --no-ri How can I configure (rake? rails?or maybe gem pkg

Re: [Rails] Re: Validating model depending on controller action

2010-10-26 Thread radhames brito
I do something similar, but you only need to remove it from mass assignment controller @thing = Thing.new(params[:thing]) @thing.value = enchilada model attr_accessible :name, :description = value cant be mass_assigned since is done programatically there is no need to

[Rails] Re: Trubelshooting MS Sql database connection

2010-10-26 Thread Fredrik TiC Jansson
Thanks seems rather comprehensive i will go through your tutorial. On 26 Okt, 13:18, Rodolinux rodoli...@gmail.com wrote: On Tue, Oct 26, 2010 at 5:41 AM, Fredrik TiC Jansson fredrikjansson1...@gmail.com wrote: Hello i have been atempting to move a project from sqlite database to a sql

[Rails] Re: Problems when connecting to Sql server 2008 odbc no such file to load error

2010-10-26 Thread Fredrik TiC Jansson
Thinking this was just a windows problem was wrong ! i am apperently doing something really really wrong. i cant seem to get any gem besides rails to install properly ! installing mongrel works but installing dbd-odbc,dbi,activerecord-sqlserver-adatper and trying to use it always gives the no

Re: [Rails] Re: Trubelshooting MS Sql database connection

2010-10-26 Thread Rodolinux
It's not my tutorial. Just I found it some days ago On Tue, Oct 26, 2010 at 9:41 AM, Fredrik TiC Jansson fredrikjansson1...@gmail.com wrote: Thanks seems rather comprehensive i will go through your tutorial. On 26 Okt, 13:18, Rodolinux rodoli...@gmail.com wrote: On Tue, Oct 26, 2010 at

[Rails] Rails 3 tagging

2010-10-26 Thread the batman
I'm using acts_as_taggable_on to add tags to posts, other tagging plugins/gems don't work with rails 3. I can edit/display tags on the post model and the tags controller displays the posts tagged by name i.e /tags/post-tag-name/. The functionality I want is to turn the tags on the posts pages into

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread bingo bob
Am I on the right lines ? -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] [Job] Permanent RoR job in Andover, MA

2010-10-26 Thread Alan . Hayes
OneVision is an emerging company specializing in work flow technology for the printing and publishing industry.? Innovative products, high-value solutions, and solid management philosophies are key factors to the company?s global growth and success.? The company has over 100 employees

[Rails] Re: Re: Validating model depending on controller action

2010-10-26 Thread Alfredo Bonilla
Thanks to everybody for your answers. I have to say that finally I resorted to some work around solution. From the reopen method in the controller I modify another model vble adding special chars. In the model validation method, I search for those chars in the vble and if they are there,

[Rails] JRuby + Windows Service

2010-10-26 Thread Daniel Shimoyama
Wassup everyone? I'm trying to deploy a application on windows server 2000, developed with JRuby. My point is, there's someway to deploy using windows service to start the application as a service, instead using a java application server? Thanks -- You received this message because you are

[Rails] Re: rspec and autotest problems

2010-10-26 Thread Brandon Love
I had the exact same issues (also running Win7 64-bit). My fix for the rspec issue was adding the path of my rspec.bat file to the environment variable path. Mine looks something like this... C:\server\Ruby192\lib\ruby\gems\1.9.1\bin For autotest, I discovered I had two versions installed, 4.3.2

[Rails] bundler installs gems in project rspec directory?

2010-10-26 Thread James Byrne
Having just converted my project to rails3 I now note that bundler installs gems into a directory called rspec in the project root. Since this defeats entirely the purpose of having central gem libraries I need to know how to turn this 'feature' off. Out of pathological curiosity I do not mind

[Rails] Re: Problems when connecting to Sql server 2008 odbc no such file to load error

2010-10-26 Thread Fredrik TiC Jansson
After som experimenting i am totally and utterly lost. I run bundle install on my bundle and for example get using ruby-odbc i then when i start my rails server get require: no such file to load -- ruby-odbc why? On 26 Okt, 15:17, Fredrik TiC Jansson fredrikjansson1...@gmail.com wrote:

[Rails] Re: bundler installs gems in project rspec directory?

2010-10-26 Thread James Byrne
I found it. -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] Re: Display Time benchmark on page

2010-10-26 Thread Philip Hallstrom
Then I would like to show on footer of my page for application time and active record time use for user to see by themselves. What is the bottleneck , may be database server , may be network of some point. Just don't want to time it by myself if the information live some where ?

[Rails] Re: bundler installs gems in project rspec directory?

2010-10-26 Thread James Byrne
I forgot to mention the solution: in .bundle/config BUNDLE_DISABLE_SHARED_GEMS: 0 However, I seem to observe that running bundle install resets this value to 1. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Marnen Laibow-Koser
Rimantas Liubertas wrote in post #957137: ...or not.  Yes, of course it's fine to use new attributes that older browsers will ignore.  However, HTML 5 differs from HTML 4 not just in its repertoire of attributes and elements, but also *in its basic syntax* -- HTML 5 is no longer a subset of

[Rails] Re: use net/ldap from my controller

2010-10-26 Thread Marnen Laibow-Koser
Peter (Guo) Pei wrote in post #957055: I downloaded net-ldap gem and had no problem to use it from non-rail applications. But when I require 'net/ldap' from inside a rails controller. Rails complains that it cannot load LoadError (no such file to load -- net/ldap):

[Rails] Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Marnen Laibow-Koser
Robert Walker wrote in post #957044: Marnen Laibow-Koser wrote in post #956924: Right. But when the syntax -- not just the semantics -- changes, then I start worrying. Time for me to do more research. Okay, so let's talk specifics. Assuming valid HTML 5 markup with no HTML 5 specific

[Rails] Re: How to make an ActiveRecord::Base object to have a list of strings?

2010-10-26 Thread Marnen Laibow-Koser
Matias Fierro wrote in post #956786: Serialize ? What do that ? It does exactly what the docs say it does. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Re: rspec and autotest problems

2010-10-26 Thread radhames brito
current auto test has issues with latest rails and ruby i think , mine also stays in limbo after loading autotest/rails and im running on ubuntu in 2 machines and is the same result -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Display Time benchmark on page

2010-10-26 Thread Hassan Schroeder
On Mon, Oct 25, 2010 at 6:35 PM, Pinit Asavanuchit li...@ruby-forum.com wrote: Like we saw in console or rails log show totaltime, database time, rendering time. on my page footer in production. Possibly this is what you want: http://rubygems.org/gems/rails-footnotes HTH, -- Hassan Schroeder

[Rails] Re: Re: pattern findings using “find” in Rails

2010-10-26 Thread Ar Chron
PalaniKannan K wrote in post #957235: I tried def author_yr #{self.author_year.last(4)} end. But it shows Undefined local variable or method 'author_yr' when i use author_yr in find by :order = [author_year like = ?, author_yr]. Please suggest me some idea in ordering. Palani

[Rails] Re: Re: pattern findings using “find” in Rails

2010-10-26 Thread Marnen Laibow-Koser
Ar Chron wrote in post #957266: PalaniKannan K wrote in post #957235: I tried def author_yr #{self.author_year.last(4)} end. But it shows Undefined local variable or method 'author_yr' when i use author_yr in find by :order = [author_year like = ?, author_yr]. Please suggest me some

[Rails] Re: Problems when connecting to Sql server 2008 odbc no such file to load error

2010-10-26 Thread Marnen Laibow-Koser
Fredrik TiC Jansson wrote in post #957147: Windows server 2003 the app was originally developed on OSX snow leopard using just sqlite3 and i sucessluffy migrated it and got it running without a hitch on win server 2003 but i have to get it working with SQL sever 2008 for production purposes

Re: [Rails] Re: Re: pattern findings using “find ” in Rails

2010-10-26 Thread PalaniKannan K
Palani Kannan. K, Impossible. You're defining author_yr in a ruby model, but expecting the DATABASE to know what that is. Doesn't work that way. As Fred mentioned, you need to use a database function that looks at the author_year field (the last 4 characters) to order upon. I got your

[Rails] Button click, rendering back to the same page

2010-10-26 Thread Creative Technologist
Hi All, Am having a lot of trouble trying to solve a very simple problem. I have a button on my form which when clicked needs to do a quick calculation then returns back to the same page to show the result. VIEW. %=button_to How much could I potentially borrow?, :action = newmortgagecalc %

[Rails] Re: Create super-simple adding application

2010-10-26 Thread debalmoto
It doesn't say any numbers, the relevant log info just says it processed the GET and got the layout. On Oct 26, 4:32 am, Frederick Cheung frederick.che...@gmail.com wrote: On Oct 26, 3:18 am, debalmoto debalm...@gmail.com wrote: Ok, so I figured out what was causing the error, I wasnt calling

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-26 Thread arai
This might be a good time to mention that with the rails 3 redesign, you can specify much more powerful constraints from within the router. Katz's website has a nice article on it: http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/ The part I found most interesting was this:

Re: [Rails] Button click, rendering back to the same page

2010-10-26 Thread radhames brito
On Tue, Oct 26, 2010 at 3:40 PM, Creative Technologist rich...@creativetechnologist.co.uk wrote: Hi All, Am having a lot of trouble trying to solve a very simple problem. I have a button on my form which when clicked needs to do a quick calculation then returns back to the same page to

[Rails] Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Robert Walker
Marnen Laibow-Koser wrote in post #957260: Robert Walker wrote in post #957044: Okay, so let's talk specifics. Assuming valid HTML 5 markup with no HTML 5 specific features, what breaks on what browsers. Valid HTML 5 markup (with XML-style self-closing tags) is invalid HTML 4 markup

[Rails] Ruby on Rails developer required

2010-10-26 Thread Sonia
Hello, Looking urgently for Ruby on Rails developer for direct fortune client. - Location: New Jersey Contract: Long term globally known fortune client is looking to interview and hire 2 Ruby on rails developer asap. Please call Sonia at 732-549-6800 ext 238 or email at sj...@chenoainc.com for

[Rails] Re: Create super-simple adding application

2010-10-26 Thread Frederick Cheung
On 26 Oct, 20:56, debalmoto debalm...@gmail.com wrote: It doesn't say any numbers, the relevant log info just says it processed the GET and got the layout. Sounds like the parameters aren't getting sent What does the rest of the view with the form look like? Fred On Oct 26, 4:32 am,

[Rails] Re: Create super-simple adding application

2010-10-26 Thread debalmoto
p %= text_field_tag(:number_one, value = 0) % %= text_field_tag(:number_two, value = 0) % /p p %= @sum % /p That's all of it. My controller: class UserController ApplicationController def home a = params[:number_one].to_i b = params[:number_one].to_i

Re: [Rails] Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Walter Lee Davis
On Oct 26, 2010, at 4:56 PM, Robert Walker wrote: Marnen Laibow-Koser wrote in post #957260: Robert Walker wrote in post #957044: Okay, so let's talk specifics. Assuming valid HTML 5 markup with no HTML 5 specific features, what breaks on what browsers. Valid HTML 5 markup (with

[Rails] Re: trying to install postgres gem on fedora 12.

2010-10-26 Thread Mile S.
just in case forks are still struggling with this(at least I was this morning on fedora core 14 beta). I solved the same problem by installing required development tools as: sudo yum groupinstall 'development tools' Cheers! ...chad -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Re: Re: Forcing rails to output HTML4 rather then XHTML?

2010-10-26 Thread Marnen Laibow-Koser
Walter Davis wrote in post #957346: On Oct 26, 2010, at 4:56 PM, Robert Walker wrote: that this is a bad thing. I'm asking because I don't personally use any version of IE, much less IE 6. I'd really like to know if IE 6 actually has problems rending HTML 5 markup. I haven't tried it

[Rails] Re: Display Time benchmark on page

2010-10-26 Thread Pinit Asavanuchit
Thank you every body I will try your suggestion. -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Form_for problem after upgrading

2010-10-26 Thread tashfeen.ekram
I am upgrading to rails 3 and afer diong so, none of my form_for are working. (I can not actually say not all of them are working but the few that i have tried are not). The page loads fine but the form is not output. This is after making the the change from % to %=. A sample form is below. %=

[Rails] Call backs not working in jquery 1.4.3 with rails 3

2010-10-26 Thread Karthikragunath Bhavani
Hi All, I am using rails application of version 3.0.0 and i have downloaded jquery latest version 1.4.3 to use in my application. However jquery conflicted with rails app so i have added noconflict code as follows script // this allows jquery to be called along with scriptaculous

[Rails] Re: Create super-simple adding application

2010-10-26 Thread Frederick Cheung
On Oct 26, 10:48 pm, debalmoto debalm...@gmail.com wrote: p         %= text_field_tag(:number_one, value = 0)  %         %= text_field_tag(:number_two, value = 0)  % /p p         %= @sum % /p That's all of it. Time for HTML lesson 1: if you want inputs to get sent to the server, they

[Rails] Rails 3 - Creating a JSON response to display Search Results

2010-10-26 Thread CuriousNewbie
Hello, I'm working to have Rails 3 respond with a JSON request which will then let the app output the search results with the jQuery template plugin... For the plugin to work, it needs this type of structure: [ { title: The Red Violin, url: /adadad/123/ads, desc: blah yada }, {

[Rails] Re: Create super-simple adding application

2010-10-26 Thread Eric R.
Frederick Cheung wrote in post #957392: On Oct 26, 10:48pm, debalmoto debalm...@gmail.com wrote: p %= text_field_tag(:number_one, value = 0) % %= text_field_tag(:number_two, value = 0) % /p p %= @sum % /p That's all of it. Time for HTML lesson 1: if you want inputs to get