Displaying 20 results from an estimated 21 matches for "kogan".
Did you mean:
logan
2006 Jul 09
8
find_all order question
How does one properly get find_all to grab the data from the DB table
ordered by a specific column?
For example:
@anglers = Angler.find_all
This code gets all the angler records and they are sorted in order of
the id field which is of course set as a primary key in the DB (mysql).
I''d really like to pull the data from the DB sorted in the order of
another field, for example
2006 Jul 20
3
Does Find also tell you a count of the array size?
When I use @persons = Find(:all) (for example) and I get back an array
of persons, is there an easy way to tell how many rows the find
returned?
I have been using Persons.count(:all) but you would think Find knows how
many it returned -- is the count/array size stored somewhere in the ret
array?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 11
3
LoginGenerator Killing Me ;)
OK I have dents in my head from beating on LoginGenerator, so if anyone
who has used this thing can shed a little light I would greatly
appreciate it.
It is installed and I have set it up on my User class. Folks can login,
logout, etc just fine. I have am not using the per method protection
model yet, as I am trying to migrate slowly ;)
What is broken though are all my methods that save or
2006 Jul 10
10
IE vs Firefox -- http:// matters?
I just noticed something interesting (or not) about getting to my RoR
app on the 2 browsers. I''ve tested it running Webrick or Mongrel_rails
and get the same behavior.
The app is at http://www.mydomain.com:myport#/app/list
Specifying that complete URL works fine in both browsers. However in IE
if you just specify www.mydomain.com:myport#/app/list I get page not
found. In FF the URL
2006 Jul 24
3
Confused on URLs to my Rails App
I need a VERY SIMPLE solution to get to my rails app. We have a
WHM/Cpanel linux server with numerous virtual servers on it. I have an
existing website called www.mydomain.com that lives in
/home/mydomain/public_html.
I have written a rails app called "test" that is in /home/mydomain/test,
and it''s rails "root" is therefore /home/mydomain/test/public.
I am an
2006 Jul 09
9
undefined method stupidity
I put some code in a before_save callback in the model file to alter
some fields that have dependencies in the DB.
I''d like to call a method in the controller file but I continually get
undefined method errors. I have specified Controller::methodname as well
to no avail. What am I missing?
--
Posted via http://www.ruby-forum.com/.
2009 Aug 18
2
Embedding lists in matrices and matrices in lists
Hi,
I'm new to programming, new to R and even new to mailing lists so please
be patient with me. I need to manage many matrices generated by an R
program. These matrices have different dimensions and I'd like to group
them somehow. The best way would be to have a big matrix (let's call it
database) where every element database[x,y] consists of a list of
matrices that all have the
2006 Aug 15
2
PHP files in myapp/public question
I am running mongrel and put some php code in myapp/public, but for some
reason they are being treated as html instead of being evaluated by the
php interpreter. What do I need to do to get these files treated
properly?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 07
7
file_column repository broken?
I really want to try out file_column but the repository seems to be down
for me. I added it to my repository list and script/plugin is unable to
see anything in it.
I downloaded an archive from the website but it is not clear to me which
files need to be installed to which subdirs of my RoR project.
Anyone else having this issue with the repository? I am able to see
other repositorys no
2009 Aug 22
3
Help on comparing two matrices
Hi,
I need to compare two matrices with each other. If you can get one of
them out of the other one by resorting the rows and/or the columns, then
both of them are equal, otherwise they're not. A matrix could look like
this:
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 0 1 1 1 0 1 1 0
[2,] 1 1 0 0 0 1 0 1
[3,] 1 0 1 0 0
2006 Aug 14
3
Need copy of Wiki Page on phpBB integration and signon
I am in Wiki hell thanks to the morons that are spamming the wili. I
went to check on the articles for integrating with phpBB as I was going
to code it today and it is gone. The back in time function doesn''t work
either. Does anyone have a copy of the wiki from this page?
HowtosDoSingleSignOnWithPHPbb
--
Posted via http://www.ruby-forum.com/.
2006 Jul 13
1
Where should method shared btwn controllers go?
I have a method I would like multiple controllers to share. Where does
it belong?
I have it in a file in lib for the moment. It seems it should be here or
in controller/application.rb.
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 07
7
Sequencing control with edit method in CRUD examples
I have been playing with the cookbook type of tutorials building a fish
tournament scoring piece and am having a bit of a problem with a DB
field called "points" in my "catch" table that is not input by the user
but is calulated based on a "size" field that is input by the user.
I have the following in my catch_controller.db
def new
@catch = Catch.new
@fish =
2006 Jul 26
5
Mongrel + mod_proxy URL issues
We have a Centos server with a number of virtual hosts, and my rails app
runs under one of those virtual hosts using mongrel_rails. The app lives
in /home/mydomain/railsapp where /home/mydomain/railsapp/public is the
rails root.
It runs under mongrel on port 8008, so to get to it users invoke the url
http://www.mydomain.com:8008/ - all is fine to this point.
Now I have some users whose
2006 Jul 21
1
mongrel_rails production vs development mode
I am migrating from mongrel_rails in development mode to production
mode. I have a number of debugging statements based on "puts" in my code
that emit info that I see scroll by when mongrel_rails is not daemonized
and running in development mode.
In daemonized production mode what happens to the output from these
statements? I have looked into all the logs, and while I see the
2006 Jul 21
1
validates_acceptance_of weirdness
On my registration form I have a checkbox for a waiver. In the model I
have the statement:
validates_acceptance_of :waiver, :on => :create, :message => "must be
accepted"
In the view:
<%= check_box_tag("waiver") %>
<%= error_message_on "user", "waiver", "Waiver "%>
For some reason validate is accepting everything when the
2006 Sep 12
1
DateHelper doesn't handle MonthDays?
I was looking at using the date helper functions for inputing a date for
some records, and was highly disappointed to see that they will allow
the entry of an invalid date such as Sept 31.
It sure would be nice to see the days available change based on the
month selected so the user cannot enter an invalid date that must later
be reentered.
Does anyone know of a plugin or if anyone has
2006 Jul 04
1
mysql_adapter.rb help please
I am an experienced systems programmer (20+ years) trying to get RoR
working on a Centos server with WHM, Cpanel, etc. Everything seems OK
and I am able to run the hello world apps however I am having major
problems when I enable some database access ala the cookbook tutorials.
Whether I run mongrel or webrick I am getting seg faults and/or traps in
mysql_adapter.rb when I submit a form of
2006 Aug 14
0
Coppermine Photo Gallery Integration
I have a RoR app that currently uses file_column for image upload and
display. The app is part of a website that uses CPG for running a photo
gallery, and I''d like to know if anyone has interfaced a RoR app to CPG
by any chance. I want to dump file_column and let CPG handle my images.
--
Posted via http://www.ruby-forum.com/.
2006 Aug 16
0
redirect_to weirdness?
In my rails app I issue a redirect_to
"http://www.otherdomain.com/getinfo.php" to invoke a php script that
will in turn ultimately send control back to my rails app with some
information.
However I am noticing that getinfo.php seems to be cached or something.
It returns the same stale result time and again unless I manuall tell my
browser to refresh the page and enter it manually.