Displaying 20 results from an estimated 20000 matches similar to: "Boolean values with Oracle?"
2006 Feb 02
19
No more logs after SVN?
Hello,
Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log?
What would cause the log entries to be not produced anymore?
Thanks
Frank
---------------------------------
Bring words and photos together (easily) with
PhotoMail - it''s free and works with Yahoo! Mail.
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2006 Feb 22
3
ri docs for Rails?
I cant find ri docs for any of the Rails classes. Do I have to generate them?
I do see RDoc files.
john
2006 Mar 31
5
Titles in URL ?
Hi!
I have an article website and would like to have the title of the
article in the URL. and not domain.com/show/id
ie: http://domain.ck/articles/how-to-become-a-ror-master/
How to change a title with special caracters like: '', :, ?, !. to
something that works in the URL.
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 31
6
string interpolation - #{} vs. single vs. double quotes
Could someone point me to documentation that provides a succinct and accurate description of the difference between interpolation using #{}, single quotes, and double quotes ?
I imagine there''s a set of precedence rules that govern behavior if/when they''re mixed. I''d like to get clear on this.
Thanks,
Bill
-------------- next part --------------
An HTML attachment was
2006 Jan 30
2
Modules, controllers and inheritance
Hi!
I was trying to cleanup my app and I runned into quite a problem. My
controllers in submodule do not seem to inherit things from base
class.
I have following setup:
app/controllers/
application.rb:
class ApplicationController
admin/
admin_controller.rb:
class Admin::AdminController < ApplicationController
include LoginEngine
include UserEngine
2006 Mar 03
17
RCSS problems
Hi List!
Following http://rcss.rubyforge.org/files/README.html, I''m trying to get
RCSS to work with Rails. The rcss command itself works fine, but when
trying to access http://localhost:3000/rcss/test.css I always get
"Unknown action - No action responded to test.css", which I don''t
understand since the route and controller are in place.
Anyway, hopefully this is
2009 Aug 05
1
ActiveRecord boolean false returning Nil
Hi All,
I have a column type of boolean, and when the value in that column is
set to ''false'' (eg. 0 for MySQL), it returns nil.
I have tested this in the console, and it doesn''t exhibit this
behavior there, only when running on Mongrel.
I tried wrapping the accessor call to intercept a nil and set it to
false for that attribute, but it doesn''t seem to be
2006 Jul 03
3
no such file to load -- RMagick
Hi,
Im attempting to use the sparklines graph plugin, and am reciving the
message below.
no such file to load -- RMagick
Has anyone got any one suggestions on how to go about installing rmagick
using rails or any tutorials?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jun 27
2
testing - how to get access to an instance variable
inside controller
def foo
@city = City.find(@params[:id])
@city.bar = 1234
end
While writing functional tests how do I ensure that the @city.bar is 1234?
def test_edit
get :edit, :id => 1
assert_not_nil assigns(:city)
#?? how to assert that city.bar is 1234
end
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 30
14
Saving boolean attributes
Hi,
I''m just learning Ruby on Rails and ran into something where I know I''m
either doing something very stupid or I''m missing something.
My model as a boolean attribute called active_flag. In my Sql Server
database this is stored as a bit value. I then setup a method in my
controller called "deactivate". This is very simple, it does:
def deactivate
2006 Aug 13
10
does rails enforce referential integrity???
Hi,
Is rails supposed to support referential integrity? That is rails
either support to be able to ensure that when a new contact is created
this can only happen if a valid suberb is associated with it, and which
mechanisms of the below are supposed to do this?
(a) using DB foreign key constraints information as a basis?
(b) using the "has_one" line in the model file to enfore?
If
2006 Feb 22
5
svn externals and Edge Rails
Hi all:
I am considering using edge rails so I can use join tables. I want to
use svn:externals to manage edge rails, however I want to understand
it more before I go and set everything up. so everytime I commit my
app it will pull the most recent version of rails from the svn
repository, right? What if the current version of rails is unstable,
is there a way to rollback edgerails and NOT my app?
2006 Mar 02
3
plugin versioning
When I install a plugin, does Rails record the version installed anywhere?
Maybe I''m not doing it the "right" way, but I''ve excluded vendors from my
source repository. I''d like some ''record'' of what plugins are used that is
under source control.
David
2006 Jul 20
4
Plugins: svn externals vs. local repository
...or, what is the best practise for ensuring that capistrano gets
plugin code to the production server? Do you hook up your plugins to
the originating repository (thereby automatically picking up changes
to the plugin), or check them into your application''s repo and use
"script/plugin update" to keep plugins fresh? Does that method mess
with your .svn directories?
thanks for
2007 Apr 16
5
AAF: merge search results
Hi,
I have a user model that has a couple of other models(like street
address, tasks).
suppose
User has a name field
Address has a state field.
so I want to provide a detailed search form each field in the user and
its related
models can be specified.
Suppose I have a user that has a name "california", and that user has a
address with the state field being "california" as
2007 May 01
2
Problem validating boolean
Hi
I''ve got a problem validating a boolean and I can''t see what the
problem is. Here''s my model:
class FinanceAgreement < ActiveRecord::Base
belongs_to :asset
validates_presence_of :finance_company
validates_inclusion_of :balance, :in => 0.01..10_000_000
validates_inclusion_of :term, :in => 1..600
validates_numericality_of
2006 Mar 06
4
Are views inheritable
Is it possible to use a child model''s controller to impliment it''s
parents view before adding its own output ?
possibly by the use of super ?
_tony
--
Posted via http://www.ruby-forum.com/.
2006 Mar 08
3
attribute or instance method or what?
Hi!
Uhm are attributes just something like additional members of a class,
other than those that come from the names of columns in the table?
I''ve got images table, which has ''name'' column. I''ve added support for
creating thumbnails out of uploaded pictures and i''d like to have an
easy way of accessing them in my views.
How to do it? I.e. my image
2006 Mar 23
6
[mongrel] [fedora5] install error " can''t find ruby libs"
Installed Fedora5.
Installed Ruby 1.8.4.
Installed rubygems.
Installed rails.
Created test app to verify that ruby and rails were working.
When I attempted to install mongrel via:
sudo gem install mongrel
I get this error:
Install required dependency daemons? [Yn] y
Install required dependency gem_plugin? [Yn] y
Building native extensions. This could take a while...
can''t find