Displaying 20 results from an estimated 300 matches similar to: "Documentation for generate controller"
2005 Dec 22
2
help me understand migrations movie
I''m somewhat of a newbie - played with recent versions of rails a few
mths ago, but have decided to start from scratch with 1.0.
I want to build my new db as much as possible with migrations, so I
watched DHH''s migrations movie from rubyonrails.org.
A few things confuse me:
1. He generates the model ("post") before running rake db_schema_dump.
Is that necessary or
2006 Aug 17
2
validates_associated bug?
i seem to be experiencing a bug where rails tells me that my
organization object''s associated credit card is invalid (activerecord
validation-wise invalid), when i know it to be valid. this happens
only if i tell the organization to validate_associated :credit_card.
i know the associated credit card is valid, because a) that
credit_card object itself throws no validation errors, and b)
2008 Jul 16
2
belongs_to causing endless loop on first call to save!
Hi,
I have a situation I''m hoping someone out there may be able to shed some
light on. I have a Rails app (2.1.0 on Ruby 1.8.7) with a wizard-based sign
up process, that has recently been changed from storing incremental data in
the database to having a medium sized object graph living in the user
session until the user completes the entire sign up process (this is a
business
2010 Aug 13
2
Rails 3 / ActiveModel for Credit Card information?
When submitting billing information in the past I''ve always used
attr_accessor for credit card details as they should not be saved in
the database. In addition I always end up storing the card
expiration date so that the date form helper works correctly.
With Active Model it seems logical to create a CreditCard class to
hold this data instead.
**1st issue.**
It seems there still
2005 Jun 29
2
Play an announcement to the CALLING party
Hi folks,
how could I play an announcement to the calling party as soon, as the
called party picked up. I would like to deploy an asterisk in an
environment, where a premium rate support-number is offered to customers
which do not want to pay a monthly support contract. In Germany, you are
commited by law to announce the cost per minute of a premium rate number at
the beginning of the call. So,
2007 Jan 06
3
speeding up pagination
I need help to optimize a query (sort of ...)
if params[:debit] == "on"
@schools = School.find(:all,
:conditions => ["name like ?", "%#{params[:search]}%"],
:order => ''name'')
@schools.delete_if { |s| s.debit <= 0 }
@school_pages = Paginator.new self, @schools.length, 20
The problem here is that
2005 Dec 21
13
Too many login generators?
there is a blog about it
http://www.realityforge.org/articles/2005/11/12/aaa_in_rails
There are so many Authentication/Authorization/Auditing generators now,
just like the situation in java''s world, Too many components doing the
samething just make me confusion. Why not add one to rails core lib and
everybody can extend it for their requirement ?
--
Posted via
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
Hello,
While reading Dan North''s BDD tutorial <http://dannorth.net/introducing-bdd>,
I tried to implement his ATM example as spec stubs.
When I first implemented it creating a context for each of his scenarios, I
noticed that there is duplication and a combinatorial explosion of the
specs.
I attached the full files to this email. For brevity, I will use scenario 1
in the body of
2006 Mar 22
3
Anyone using Theme Generator
Im working on a simple private Rails app, but I''m not much of a designer
and I''m struggling to get a nice layout.
So I was thinking of using this Theme Generator:
http://www.mattmccray.com/archives/2005/10/26/full-theme-support-in-rails-revisited/
Does anyone have any experience with this?
Is it working in the latest versions of Rails? (1.0)
Is it worthwhile even for a
2015 Oct 08
2
Sernet 4.3.X package is no longer free :/
Maurik,
You are right. I am currently using 4.1.17 and have the same failed login
messages as you describe. There is, however, a bit more information further down
in the logfile:
[2015/10/07 16:51:24.076283, 2] authentication for user [HPRS/Administrator] FAILED with error NT_STATUS_WRONG_PASSWORD
auth_check_password_send: Checking password for unmapped user [HPRS]\[Administrator]@[ROVER]
2006 Jul 31
2
Wizard-like multi-page transaction
Hello
Is it possible to create something like wizard with database
transactions, so transaction would begin on page one, then on page two,
three... etc. there would be some data altered in the database and then
on the last page the transaction would be committed or rolled back?
thx
Zvonko
--
Posted via http://www.ruby-forum.com/.
2016 Jun 26
2
Need IP on failed logins in logfile
I used to also get related log messages of the form:
auth_check_password_send: Checking password for unmapped user [HPRS]\[mark]@[ROVER]
auth_check_password_send: mapped user is: [HPRS]\[mark]@[ROVER]
but now all I get is the auth_check_password_recv in the log. Perhaps the change is due to an
upgrade to Samba, or perhaps a change I made to my smb.conf log options? (see log config in
my
2006 Mar 13
6
lame newbie question: how to pass instance variables
This should be obvious - but I''m a long-time non-web app programmer and
new to rails.
I simply want to put something in a variable in one action and access it
in another.
It''s like this, I''m doing a simple photo gallery/managment app, and I
have two actions in my picture_controller:
The first one scans the picture directory and creates a new object in
the pictures
2016 Feb 24
1
Bitcoin for CentOS 7
> Meanwhile banks like Chase charge poor people $12.00 a month just have
> checking and push debit card paychecks on low income jobs where they
> charge just for the poor to check how much they have on it.
That bad, huh?
2011 May 20
5
Restart asterisk destroy all registered SIP peers
Hi Guys!
This is strange issue with 1.8 I have restarted my asterisk and it destroy all registered SIP peers now only solution is i manually reboot all phones to get them register back. I have never seen issue like this before. Any idea what would be the issue ?
Thanks
S
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 16
11
just don''t ''get'' "has one" and "belongs to one"
Well, I understand what they do and how, I just don''t get why!
It seems to me that any time you would have this relationship between
two tables...they should be one table! Agile Rails book gives what
seems to me to be a lame example for this. They use the example of an
"invoice" and an "order". An invoice belongs to an order and an order
has one invoice. Seems
2016 Feb 24
5
Bitcoin for CentOS 7
On 02/24/2016 06:04 AM, m.roth at 5-cent.us wrote:
> Alice Wonder wrote:
>> For those interested I have a working spec file for Bitcoin 0.12.0
>>
>> https://github.com/AliceWonderMiscreations/bitcoin/blob/master/contrib/rpm/bitcoin.spec
>>
>> I believe the only BuildRequires that isn't in CentOS/EPEL is
>> miniupnpc-devel but that's trivial to build
2016 Jun 25
4
Need IP on failed logins in logfile
I am running Samba Version 4.1.23 as an AD/DC on Linux Slackware64 14.1. I am logging samba
messages to /var/log/samba/log.samba with logging set to the following in smb.conf:
log level = 2 passdb:5 auth:10 winbind:2 lanman:10
I have a script that scans this logfile for message like the following:
auth_check_password_recv: sam_ignoredomain authentication for user [HPRS\thisuser] FAILED with
2004 Aug 19
1
Debit/Credit Card Terminals
Has anyone tried using a debit/credit card terminal as such:
Terminal <-> SPA-2000 <-> Public Internet <-> * <-> PRI
I'm hoping someone will tell me they have done this successfully and
rarely experience dropped calls. Though I'd like to hear from anyone
who has tried and failed as well.
Thanks,
Trevor Peirce
2005 Jul 07
1
WinXP looking for *.dll share names?
Hi folks,
Over the last few weeks, one of our WinXP machines (of many) has
started generating errors like the following in our log files:
Jul 5 09:43:30 blah smbd[13180]: blah-xp (192.168.1.1) couldn't find
service sharename.dll
where "sharename" is a real share name that this user should be
mapping. We see lots of these errors, one for each share
the user tries to map. In