Forgive me for asking the obvious, but did you set the db_name in the
production area of database.yml?
On Thu, Jun 9, 2011 at 8:18 AM, Alex Katebi wrote:
> When I set the rails_env to production in nginx.conf I get:
>
> Error message:
> db_name must be a string or symbol
>
> --
> You received th
When I set the rails_env to production in nginx.conf I get:
Error message:
db_name must be a string or symbol
--
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 unsu
Also, I noticed that even spaces are not being escaped with the below:
<%= link_to type.name, types_path(CGI::escapeHTML(type.name)) %>
The link is rendered with a space in it. Once I click on it, it is
eventually rerouted to the same address except with the space escaped
with a %20. That does not
<%= link_to type.name, types_path(CGI::escape(type.name)) %>
The above one renders the page fine. However, when I click on the
link, then it gives me the no route error.
<%= link_to type.name, types_path(CGI::escapeHTML(type.name)) %>
The one above does not even render the page and gives me the
just to make sure i dunerstood this. so to optimize ranking, when
soeone types in xxx.com it should be routed to www.xxx.com at the
level of the http server?
On Jun 2, 5:10 am, Chris Kottom wrote:
> Yes, important point there. The choice to host across multiple subdomains
> should be made for a
I think your form is not setting remote correctly.
If it was submitting correctly you should not see ?remote=true.
form tag takes 2 parameters url_for_options and options. If you don't
put the {} around the first set of options it will assume they are all
url_for_options
form_tag(url_for_option
Hey folks. Sorry for the multiple releases in such a short time span, but the
security fixes released yesterday seem to have broken people's applications.
Even though this is a release candidate, I am not happy about breaking stuff.
I've pushed a 3.1.0.rc3. Please test it against your applica
Hey folks. Sorry for the multiple releases in such a short time span, but the
security fixes released yesterday seem to have broken people's applications. I
am not happy about that.
I've pushed a 3.0.9.rc1. Please test it against your application against this
release candidate and report any
Hello,
I can't make autotest running on Ubuntu, please help.
Error message:
/.rvm/gems/ruby-1.9.2-p180/gems/test-unit-2.3.0/lib/test/unit/ui/
console/testrunner.rb:336:in `': uninitialized
constant Test::Unit::UI::Console::Diff (NameError)
Copied .autotest file from here:
http://automate-everyth
On 08 Jun 2011, at 22:22, Joe Koston wrote:
I will try to set HTTP_ACCEPT when I get home. I know it's not
being set now, but I wasn't sure if it was required or not.
Something must have changed from 2.3.4 to 3 or I set some
configuration in 2.3.4 that I dont remember..
Well, the Accept
I will try to set HTTP_ACCEPT when I get home. I know it's not being set
now, but I wasn't sure if it was required or not.
Something must have changed from 2.3.4 to 3 or I set some configuration in
2.3.4 that I dont remember..
On Wed, Jun 8, 2011 at 1:16 PM, Peter De Berdt wrote:
>
> On 08 Jun
Hi everyone,
I am having a problem rendering js, this is my code:
in the main view index.html.erb I have
<%= render(:partial => 'poll')%>
In the partial _poll.html.erb I have:
<%= form_tag(:action => "update_all", :remote => true) do %>
<% for @poll in @polls %>
<%= fields
On 08 Jun 2011, at 22:02, pipplo wrote:
I replied to this earlier but I think I may have accidentally clicked
discard instead of send. Sorry if this is a duplicate:
I tried that method (using respond_with). Even then the requests gets
processed as HTML.
So on my Rails 2 setup just setting CO
I replied to this earlier but I think I may have accidentally clicked
discard instead of send. Sorry if this is a duplicate:
I tried that method (using respond_with). Even then the requests gets
processed as HTML.
So on my Rails 2 setup just setting CONTENT_TYPE = 'application/json'
causes the r
Get it to work! =D
private
def stored_location_for(resource_or_scope)
nil
end
def after_sign_in_path_for(resource_or_scope)
"http://example.com";
end
Thanks by the tips! ;)
On Wed, Jun 8, 2011 at 3:55 PM, Fernando Aureliano <
m...@fernandoaureliano.com> wrote:
> This helps a
Could we have a rc3 that includes the Safebuffer fixes
(https://github.com/rails/rails/commit/c6503f48bd13c696fcc81f2a4a87b8cd7c009657,
https://github.com/rails/rails/commit/185235333c7b345e7cbb6384446c89d8447f5d79)
?
This is really a blocker for us :(
On Wed, Jun 8, 2011 at 18:11, Aaron Patterso
If I call Engine::BlogPost everything is gravy,
If I call BlogPost then I get...
uninitialized constant BlogPost
On Jun 8, 11:35 am, Frederick Cheung
wrote:
> On Jun 7, 3:16 pm, frizbe1605 wrote:
>
> > Okay, I'm chaining methods. I want access to my class. I can access
> > SomeClass with a met
This helps a lot.
Thanks!
On Wed, Jun 8, 2011 at 3:51 PM, Jason Fleetwood-Boldt
wrote:
> Fernando,
>
> The problem is right in your code.
>
> Let me explain it to you, but I won't offer a solution:
>
> def after_sign_in_path_for(resource) says if resource.is_a?(User) &&
> resource.can_publish?
>
Fernando,
The problem is right in your code.
Let me explain it to you, but I won't offer a solution:
def after_sign_in_path_for(resource) says if resource.is_a?(User) &&
resource.can_publish?
We can tell from your code that you are passing in a User object (defined in
app/models/user.rb) to
Hi!
Thanks by the tips!
Actually I'm learning Rails, and I already see this tutorial, is very
good.
I'm already do too Rails for zoombies, Rails best pratices and a lot other
tutorials.
I'm doying my first web app, just to practice what I learned.
but none of them learned about this m
On Jun 8, 2011, at 8:20 AM, dev_rails wrote:
Hi,
Please help to create a spreadsheet view in rails application. Need to
display the cell values from DB with manipulating option.
Please specify gems/plugin if available.
If you're using Prototype.js in your application, please take a look
a
On 8 June 2011 16:44, Fernando Aureliano wrote:
> I do not know this method, and the documentation does not show how to
> implement it.
In that case I think you are in need of some basic learning. I
suggest you work through a tutorial such as railstutorial.org, which
is free to use online, that
Hey, guys, I am not looking for work, I am not very familiar with ethics to
replying to mailing list threads either, I am just amazed how you repeat the
proper Job Offer guidelines time and time again ("to save everyone a lot of
time", as Peter expressed it). That's awesome!
2011/6/8 Peter Bell
On 8 June 2011 14:59, akkdio wrote:
> Hi,
> I am going through the Agile web development with rails 4th edition
> and am getting this error. It seems to be related to the fixtures (my
> guess) and all the tests are failing. Can someone point me in the
> right direction to understand what I did
Hi everyone! I've released rails version 2.3.12.
## Security issues!
There are security issues in the `rails_xss` plugin, and we've fixed them with
this release. Please make sure to upgrade your `rails_xss` plugin.
Please [see
here](http://weblog.rubyonrails.org/2011/6/8/potential-xss-vulner
# Security Issues!
This release contains fixes for possible XSS problems in your rails
application. It is unlikely that your application is vulnerable, but you
should take precautions by updating your application.
For more information about the XSS issue that was fixed in this release, please
On Jun 7, 3:16 pm, frizbe1605 wrote:
> Okay, I'm chaining methods. I want access to my class. I can access
> SomeClass with a method like some_class. Now with engines in Rails
> 3.1, I can use modules to break apart my codebase. So now, SomeClass
> would beEngine::SomeClass. If I try to accessEn
# Security Issues!
This release contains fixes for possible XSS problems in your rails
application. It is unlikely that your application is vulnerable, but you
should take precautions by updating your application.
For more information about the XSS issue that was fixed in this release, please
At the risk of repeating myself :)
You should probably clarify whether you're looking for local, national or
international and whether you're offering market cash comp on an hourly basis
(an hourly range would help to better match the right applicants) or a fixed
bid (again, give a ballpark bud
You should probably clarify whether you're looking for local, national or
international and whether you're offering market cash comp on an hourly basis
(an hourly range would help to better match the right applicants), a fixed bid
(again, give a ballpark budget) or whether you're looking for som
Hi Everyone!
I've got a project that's nearing completion and our RoR dev has
bailed on us. In need of a freelancer who can pick this up and finish
it off for us. We're a production company who uses a core group of
freelancers so this is a great chance to pick up more work as well
(RoR and other).
Hi,
I am going through the Agile web development with rails 4th edition
and am getting this error. It seems to be related to the fixtures (my
guess) and all the tests are failing. Can someone point me in the
right direction to understand what I did wrong here?Here is the
first failure in the
I am creating a startup company and need the help of a talented Ruby
programmer to develope the code for over a dozen applications/
features. This will probably take anywhere between 2-3 months to
complete. I have defined the features and have developed wireframes
for each of the 20 pages to the
Hi,
Please help to create a spreadsheet view in rails application. Need to
display the cell values from DB with manipulating option.
Please specify gems/plugin if available.
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
I do not know this method, and the documentation does not show how to
implement it.
=(
On Wed, Jun 8, 2011 at 12:30 PM, Colin Law wrote:
> On 8 June 2011 16:22, Fernando Aureliano
> wrote:
> > Hi there!
> > I have 3 types of users in my system, And I'd like to redirect each of
> him
> > for
On 8 June 2011 16:22, Fernando Aureliano wrote:
> Hi there!
> I have 3 types of users in my system, And I'd like to redirect each of him
> for a differente page.
> I know Devise have a helper to do this, but I'm getting some problems to
> implement it
> I'm started trying from the documentation
>
Hi there!
I have 3 types of users in my system, And I'd like to redirect each of him
for a differente page.
I know Devise have a helper to do this, but I'm getting some problems to
implement it
I'm started trying from the documentation
http://rubydoc.info/gems/devise/1.1.2/Devise/Controllers/H
The problem has been solved in rails 3.1.0.rc2.
On Jun 5, 10:06 am, Tomasz Zurkowski wrote:
> I encounter a problem when I upgraded my rails 3.0 project to
> 3.1.0.rc1. Everything was working fine, but when I reloaded a page it
> took about 5s to load it. I investigated a problem and I found out
On 08 Jun 2011, at 09:17, pipplo wrote:
I have a rails 2 app that I am upgrading to rails 3.
I am exposing a web service to a phone app. When I make a request
from the phone application the CONTENT_TYPE is application/json
In rails 2 my controller recognizes this as json, but in rails 3 my
c
I have a rails 2 app that I am upgrading to rails 3.
I am exposing a web service to a phone app. When I make a request
from the phone application the CONTENT_TYPE is application/json
In rails 2 my controller recognizes this as json, but in rails 3 my
controller recognizes it as html.
resp
40 matches
Mail list logo