Displaying 20 results from an estimated 900 matches similar to: "Microsoft SQL Server has me stumped"
2008 Nov 19
2
Where should I put "prerequisite logic"?
Hi there,
I have this model called InventoryItem. Every time an InventoryItem is
created (through the CharactersController and the create_item action) I
need to update others tables and make lookups in other tables, to check
if the Character has the prerequisites to actually create the
InventoryItem.
My problem is that I cannot seem to find a good place to put this logic.
I''ve tried to
2006 Mar 15
1
An Association Problem: AR::Base.find{:include} and n-deep association traversal
Dear List,
I''m using Edge Rails.
I have a Model with Items for purchase. Each Item is of a certain brand.
Class Brand < ActiveRecord::Base
end
Class Item < ActiveRecord::Base
belongs_to :brand
end
The problem domain is that I''d like to create a separate Inventory
list of Items. This includes the date of entry into inventory and
date of exit from inventory (ie
2006 Aug 15
6
try creating a table for your model
Railers:
Greetings from the low end of the learning curve. I have installed all
the prerequisites on Win32, including a lite MySQL database with a
table in it called Inventory.
Then I run this command line...
ruby script/generate ajax_scaffold Inventory
...and I get this error message:
error Before updating scaffolding from new DB schema, try creating
a table for your model
2006 Apr 03
7
Getters and setters problem?
Hi list,
first evening of playing with rails, so please forgive me if I ask
something stupid. ;-)
I created a User model and tried to use ActiveRecord callbacks to
convert the password to sha1 just before saving it. For some reason
postgresql gives me a error because the given password is null. To
test even further I tried to change :login too, same error happens,
:login is empty too.
I am sure
2006 Jun 05
7
Is HABTM Dying?
For a while, I''ve been getting that HMT is replacing HABTM. It appears that
HMT can do all of what HABTM can do and more. The question is: Should I stop
using HABTM? Let''s take a simple case:
A case has many categories
For a given category, there are certain valid statuses
Category
has_and_belongs_to_many :statuses
Status
has_and_belongs_to_many :categories
Question:
Is
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi !
I''m trying to connect to an https URL, but it seems it doesn''t work.
Has anyone successfully connected from Ruby to an HTTPS server ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
2006 Aug 02
15
Rails in a Windows World
I work at an organization that is very wrapped up in Microsoft products. I
am trying to get a test application put in however I''m not sure what to do
about the infratstructure. If it were up to me we would put in MySQL and
Apache or Lighty, however its not up to me. The easiest way to get an
application into production at our company would be to use the existing MS
SQL server and IIS
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 28
9
Rails Borked After 1.1.3 Install?
I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very strange
results.
When hitting a controller action, I am told that perfectly valid methods are
not there:
NoMethodError (undefined method `find'' for VideoTrack:Module)
Huh? Here''s the code in question:
VideoTrack.find(:all, :conditions => "featured_video = 1", :order =>
2006 Jul 10
7
Code suggestions with Radrails .rhtml view files
anyone been successful with implementing code hints in the Views folder
with radrails in eclipses?
There is a tutorial out there that suggests you edit the jsp folder
(http://www.napcs.com/howto/railsonwindows.html#_Toc111133462)
but i think when you add rails, that jsp folder somehow disappears or
something. i don''t like that idea anyway, cause i don''t like jsp hints
2007 Feb 08
5
a possible bug in Has_many :through using :soucre
I''ve been stumped on this for a few days and I''m not sure if it''s an error
on my end or an actual bug.
I have a system where I have workshops and users. Workshops have students,
presenters, and troubleshooters. I wanted to represent this simply by
using has_many :through with :source.
Workshop
has_many :presenters, :through =>:presenterships, :source=>:user
2006 Apr 04
21
Rails on IIS
I just spent the last two days trying to get Rails on IIS to work with
Windows 2003/IIS 6.0. I think I''ve finally got it working, but it took
more googling than I care to describe. Now I''ve got a few questions:
1) Is there some ''official'' Rails on IIS guide on this site on another
official ruby site that''s known to work well?
2) If not, can someone
2006 Jul 07
6
mongrel/win32/apache2 link modification question.
I have apache2 - mongrel 0.3.13.3-mswin32 running, on a server 2000
pc, by folowing the ''Serving Multiple Rails Applications on Windows
with Apache and Mongrel'' ( http://tinyurl.com/z9ftz )
the question I have is why is why is http://localhost/myapp/ addded to
the front of all my links and how can I stop it?
origanal link using webrick /employees/edit/1214
now
2006 Aug 02
4
College course on Ruby on Rails
Hello all,
I am very happy to announce that registration for my new course entitled
"Ruby on Rails Development" at my college is now open. We are offering this
course as part of our LAMP certificate which is designed for working
professionals who want to upgrade their skills.
I think that it is a sign of Rails'' growing maturity that I was able to
propose this and work it
2006 May 04
7
windows / migration issues
Running latest rails, etc on windows xp.
I can''t use "rake migrate" to migrate to latest version. I NEED to
specify, i.e. "rake migrate VERSION=11" for things to work
consistently.
plain ''ol "rake migrate" never makes it to the latest version. no
errors, she just stops short of the latest version.
hasn''t been a problem until now --
2006 Jun 30
3
Authentication services for the general public - Electronic signatures
Does anyone know of any services that could be used to authenticate a user
that would be a member of the general public? One of the projects we''re
looking at here needs to have forms signed by parents of students. Since we
simply can''t put every parent or guardian in our databse, we need a way to
outsource the authentication.
I''m wondering if there are any services that
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the
views with tons of <% %> ?
Like this
<%= start_form_tag() %>
<%= text_field_tag(''category[title]'', category.title, {:size => 20,
:maxlength => 128}) %>
<% if not category.parent_id.nil? %>
<%= select("category", "parent_id",
Category.find(:all,
2006 Jul 14
5
migration and inserting default data
Hi,
I''m wondering is there a way to load default data in the migration script?
So, for example I''m creating new table to store the order status, I also
want to pre-populate the table with some data from a sql file.
I have done a quick search on the list but cannot find anything.
thanks,
- reynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
All,
While attempting to use ActiveRecord against a large database, approx.
1700 tables and 4 million rows, I discovered an inefficiency in
oci_adapter.rb. The problem seems to be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
2006 Mar 24
10
Running Rails tasks by schedule, instead of an HTTP request.
Hi there
I''m considering Rails for a new web-application planned to be built
from scratch.
The application has an extensive web front, and in fact most of the
application is interfaced through that front and engaged through
clients'' HTTP requests (i.e. the conventional way web-applications and
"dynamic web-sites" work). However, some essential parts are supposed
to