Ignore my post 2 posts up. Turned my config was working fine.. Didn't realize they weren't being updated with normal cap deploys so my server still had the old ones in etc/nginx/sites-enabled...
I've been struggling for a while now getting multiple apps online on one server so I hope someone can help me...
I've followed this tutorial to the letter apart from a few version changes (Ubuntu Server 12.04, rbenv 1.9.3p194).
Everything works fine with one website but as soon as I add another website things start to go wrong. At first nginx doesn't start and gives an error that I need to encrease my server_names_hash_bucket_size: to 64 which it's kinda weird because my domainnames for both sites aren't that long.
After changing that nginx starts again and the first site works but the second one gives an error. What's also weird is that my first sites stays the default site accessible by the ip of the server and all the domains pointing to it even though I have listen 80 default deferred; commented out.
I use this nginx.conf for both site with only the server_name different ofcourse:
Ignore my post 2 posts up. Turned my config was working fine.. Didn't realize they weren't being updated with normal cap deploys so my server still had the old ones in etc/nginx/sites-enabled...
I've been struggling for a while now getting multiple apps online on one server so I hope someone can help me...
I've followed this tutorial to the letter apart from a few version changes (Ubuntu Server 12.04, rbenv 1.9.3p194).
Everything works fine with one website but as soon as I add another website things start to go wrong. At first nginx doesn't start and gives an error that I need to encrease my server_names_hash_bucket_size: to 64 which it's kinda weird because my domainnames for both sites aren't that long.
After changing that nginx starts again and the first site works but the second one gives an error. What's also weird is that my first sites stays the default site accessible by the ip of the server and all the domains pointing to it even though I have listen 80 default deferred; commented out.
I use this nginx.conf for both site with only the server_name different ofcourse:
Never mind I figured it out :)
Change:
$("#products").html("<%= escape_javascript(render("products")) %>");
To:
$("#products").hide();
$("#products").html("<%= escape_javascript(render("products")) %>").fadeIn(500);
Never mind I figured it out. I just added this helper function:
Is there a way to set the default direction of certain columns to desc?
For example Popularity that uses the amount of hits. Right now the least popular item is when you click it once...
Thanks in advance!
Anyone know how to nicely fadeIn the results? Thnx!
I have many price fields (monthly, average, total etc).
Can these getter/setter methods be rewritten for use with all my fields?
Thnx your solution works for my Dutch website where I rename my resources to Dutch words like so:
resources :users, :path => "gebruikers" do
resources :comments
end