Displaying 20 results from an estimated 10000 matches similar to: "Changelog/Commit Feeds?"
2006 Jul 25
7
Problem running rake db:migrate
I''m having a great deal of trouble getting rake to run migrations on our
staging server. Everything works fine on my dev box, but trying to run the
following on staging results in errors.
-----
> rake db:migrate
(in /var/www/apps/acadtech2/app)
rake aborted!
Don''t know how to build task ''db:migrate''
(See full trace by running task with --trace)
----
The
2006 Jun 28
2
respond_to and Accept headers
After reading:
<http://www.loudthinking.com/arc/000572.html>
I''m trying to experiment with respond_to in order to not repeat myself
and create atom feeds out of a "browse" view.
In application controller I created a before filter that checks for the
extension of the current url and changes the accept header:
[code]
def check_headers
@headers["Accept"]
2006 May 11
7
Rails in Dr. Dobbs Journal ?
Hi,
I''ve read that Dr. Dobbs Journal''s last issue has a cover article about
Rails titled "Ruby On Rails - Java''s Successor?". Can''t find anything
about it in http://www.ddj.com
Does someone have the paper edition and can confirm that, and tell
how the article looks like, and so on.
Thanks,
-- Jean-Fran?ois.
--
? la renverse.
2006 Apr 20
8
2 layouts per .rb page
Hi,
Is this possible
ive got layout "loggedout_layout", :only => [:login, :logout]
but I also want to do somthing like
layout "loggedin_layout", :except => [:login, :logout]
When the second one is introduced it seems to cancel out the first
request, any suggestions how to get around this?
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Apr 18
12
Formatting data drawn from a DB
Question for all:
Right now i have a Table in a mySQL DB that has a row called
Ingredients. When the data is entered into the DB its enter like so
from a text area:
1 1/2 lbs. beef top sirloin, thinly sliced
1/3 cup white sugar
1/3 cup rice wine vinegar
2 tablespoons frozen OJ concentrate
1 teaspoon salt
1 tablespoon soy sauce
1 cup long grain rice
2 cups water
1/4 cup cornstarch
2 teaspoons
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml:
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
admin:
id: 1
username: admin
password: admin
pbarry:
id: 2
username: pbarry
I have a unit test for my user model:
require File.dirname(__FILE__) + ''/../test_helper''
class UserTest < Test::Unit::TestCase
fixtures :users
def
2006 May 18
6
Routes and Testing Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. If someone could possibly point me in the right
direction, I would really
2006 Apr 28
9
How to display numbers or word graphically?
Some blog sites and others (ticketmaster, for example) require you to
read a graphical representation of a word or number to prevent a form
from being submitted programmatically.
I''d like to do something similar on a new site I''m building.
Two quick questions:
1. Is there a standard term for these graphical representations? i.e.
how would I do a google search for this
2006 Apr 09
6
Write/Display AR query as Grouped Results?
I''ve got a publications table that contains an author_id foreign key and
a pubrole_id foreign key. What I want to do is query the DB using AR so
that I can get a list of all publications that belong_to a particular
author, and group the results by the pubrole.role_name (Author, Joint
Author, Editor, etc.) so that the results look something like:
Author
book1 info
book2 info
etc.
2006 Apr 20
2
Image Display Question
Hello there,
I have something odd happening to my image tags when displaying an image.
Here''s what my ''<img src>'' tags are looking like:
<img alt="2-thumb" src="/images/public/uploaded_images/2-thumb.jpg?" />
Notice the question mark at the end of the string. I have no idea where this
coming from. Here are the important parts of my
2006 May 18
3
"About your application’s environment" Effect
I was wondering if there is a Rails method that does something similar
to the "About your application?s environment" link on the "Welcome
Aboard" page you get when you first install Rails.
What the link does is make and AJAX call, then blind down and up using
AJAX.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 May 03
6
sql server, date and time
Hey there all,
Is there some way to tell rails or sql server to ignore the time in a
datetime field when doing a comparison?
For example, if I do something like
select * from users where registration_date = ?, @date
where @date might equal some user input like ''03/14/2006''
The result is nothing returned, because in my tables the datetime
field looks like this:
3/14/2006
2009 Mar 30
2
dbox benchmarks
http://hg.dovecot.org/dovecot-dbox-redesign/
Looks like multi-dbox scales pretty nicely. Even after 100k messages the
peak saved msgs/sec is the same as the initial saved msgs/sec, even if
the average slows down somewhat.
I tested this by first deleting mailbox, then running "imaptest" for a
second to get saving to start writing several fields to
dovecot.index.cache file. Then ran
2007 May 12
3
dbmail benchmarking
I thought I'd try benchmarking with dbmail (v2.2.4) to see how much
slower a SQL backend could actually be. Skip to bottom for the
conclusions.
Originally I ran the tests with the databases being in XFS
filesystem. MySQL's performance was horrible. It went 3-7x faster
with ext3.
MySQL 5.0.30 backend (innodb):
./imaptest clients=1 - append=100 seed=1 secs=30 msgs=1000000 logout=0
2007 Oct 09
1
SpamAssassin and Public Namespace
Hi I know i might get flamed for asking this in the dovecot mailing list
instead of the spamassassin one but i thought someone might be kind
enough to help anyway.
TIA
I'm trying to do site-wide spam filtering with a public namespace but
it's not reading the folder i have in the public namespace
This is the public namespace set in my dovecot.conf
#public spam folder
namespace public
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote:
> Hi Jie,
>
> url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013
> base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
> config: parisc-randconfig-m031-20200913 (attached as .config)
> compiler: hppa-linux-gcc (GCC)
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote:
> Hi Jie,
>
> url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013
> base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
> config: parisc-randconfig-m031-20200913 (attached as .config)
> compiler: hppa-linux-gcc (GCC)
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one
(and other relationship identifiers). I have read the RDoc and the
agile book many times about this and I think i still see it backwards.
Let me outline my app so you have an understanding...
I have 2 tables:
Schools { id, school_name, address_id }
and
Addresses { street1, street2, city, state, zip, country }
*** this
2012 Feb 14
1
[PATCH 2/7] drm/nouveau: do a better job at hiding the NIH i2c bit-banging algo
I'd like to export the corresponding functions from the i2c core
so that I can use them in fallback bit-banging in i915.ko
Cc: nouveau at lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/nouveau/nouveau_i2c.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_i2c.c
2006 Apr 20
5
Integrating with Legacy Databases
This seems like it must have been asked before - I really _did_ try to
find it in the archives, so my apologies if it''s already out there.
Utilizing ActiveRecord, I would like to specify a prefix for the
column names in my table. For example, in ''Recipe 16 Integrating with
Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal
with integration with a