Displaying 9 results from an estimated 9 matches for "junti".
Did you mean:
juni
2009 May 05
9
no sql in the controller guideline
hello. i just checked Chad Fowler''s post "20 Rails Development No-No''s"
and
one guideline caught my attention. it says:
"Nothing that looks at all like SQL should go into a controller, view,
or helper."
it really came as a surprise to me as Rails itself seems to go against
such practice by its AR ''conditions'' option, which most of the times
2008 Jun 24
3
Running the beast forum for the first time
Hey guys,
so I think I''ve done my installation of the beast forum correctly. Its
done the database migration and all the tables look fine. Now, when I
run
ruby script/server
and point my browser at http://localhost:3000/ I get a "500 Internal
Server Error" error.
Anybody know whats causing this? I''ve been trying to work it out for
ages now and its wrecking my head
2008 Jul 11
4
how to debug using rspec stories
Hello. I just started to use rspec stories. I followed the following
tutorial:
http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app
So I implemented my story and some of the steps are:
(...)
When "user creates a product" do
post "products/new", :name => @name
end
Then "there should be a product named
2008 Jul 03
6
mysql gem warning on ubuntu
i just deployed my app on ubuntu with passenger.
i installed the mysql gem as follows:
$ sudo gem install mysql
Select which gem to install for your platform (i486-linux)
1. mysql 2.7.3 (mswin32)
2. mysql 2.7.1 (mswin32)
3. mysql 2.7 (ruby)
4. mysql 2.6 (ruby)
5. Skip this gem
6. Cancel installation
> 3
Building native extensions. This could take a while...
Successfully installed
2008 Jun 23
1
updating to 2.1.0 using InstantRails2.0 - cache problem
hello. i''m trying to update to rails 2.1 using instant rails,
so i can use the new cache features, but when i try to
use the method "Rails.cache.write" in a controller, i
get the error
"undefined method `cache'' for Rails:Module (NoMethodError)"
and if i try to force the cache store to memory_store using
"ActionController::Base.cache_store =
2008 Jun 23
2
From Instant Rails 2.0 to Rails 2.1.0 - cache problem
i''m trying to update to rails 2.1 using instant rails, so i can use
the
new cache features, but when i try to use the method
"Rails.cache.write"
in my controller, i get the message
"undefined method `cache'' for Rails:Module (NoMethodError)"
and if i try to set the cache store
("ActionController::Base.cache_store = :memory_store")
in a conf file, i
2009 Apr 22
2
what escape or sanitize functions are out there?
i found the following functions or method to escape HTML, URL params, or
Javascript data:
<%= h @ha %>
<%= sanitize @ha %>
<%= u @ha %>
<%= @ha.to_json %>
<%= strip_tags @ha %>
are they more functions or methods to do these things?
and are there alternative ways to do that? thanks.
--
Posted via http://www.ruby-forum.com/.
2008 Jun 23
12
From Instant Rails 2.0 to Rails 2.1.0
hi,
I have installed Instant Rails 2.0 on my machine which comes with
Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do
gem update rails and It seems to be fine. But when I check the version
of my Rails I get the following message:
>rails -v
C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error'': RubyGem version error: activesupport(2.0.2
not
2008 Jun 24
0
rake db:create error:"Unknown database"
rake db:create stopped working since i updated rails
to 2.1.0. the problem is that this new version of
rake is loading the files in the ''config/initializers'' directory,
and one of the files has database operations, so as the database
is not created yet the ''db:create'' task halts. i commented
the db calls and the db was created normally.
anyone knows how to avoid