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;
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
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
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
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
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.
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
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
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
...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
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 =
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
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.
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 =
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
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
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,
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
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
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
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
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/.
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
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
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
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:
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
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
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
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
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
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
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
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
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,
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
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
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
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:
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
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 ?
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
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
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):
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
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
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
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
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
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
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
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
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 %
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
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:
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
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
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
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,
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
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
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
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
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
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.
%=
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
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
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 },
{
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
69 matches
Mail list logo