Displaying 20 results from an estimated 20000 matches similar to: "Keeping failed validations on the /new URL"
2006 Aug 14
1
Postback Action Problem
I was trying to use postbacks, but its not working.
def edit
@xxxx= xxxx.find_by_id(params[:id]) || xxxx.new
if request.post?
@xxxx.attributes = params[:xxxx]
redirect_to :list and return if @xxxx.save
end
end
I get the following error: SystemStackError in xxxxxController#edit
stack level too deep. The code of list is same as the code generated by the
scaffold
2007 Feb 01
12
RESTful Rails and other musings
Hi all,
I would first like to introduce myself to the Ruby on Rails (RoR)
community and to say that I hope to begin to build some relationships
with other RoR developers.
I''m a long time Java programmer (5+ years). Java was my first
experience with Object Oriented Programming (OOP). Before Java I
developed using many other languages including C, Pascal, Fortran,
BASIC, Visual Basic,
2006 Sep 08
0
URL authentication
Isn't there anybody who has at least an idea what might be causing
this? Or is URL authentication no longer considered a functional part
of Icecast?
/ Peter Bengtson
2 sep 2006 kl. 11.29 skrev Peter Bengtson:
> I can't get URL authentication to work. The notification script is
> never called by icecast (v 2.3.1).
>
> This is the mount point:
>
>
>>
2006 Sep 02
2
URL authentication
I can't get URL authentication to work. The notification script is
never called by icecast (v 2.3.1).
This is the mount point:
> <mount>
> <mount-name>/tp.mp3</mount-name>
> <max-listeners>499</max-listeners>
> <hidden>1</hidden>
> <no-yp>1</no-yp>
> <authentication
2011 Nov 12
4
No route matches [GET] "/microposts/304"
Hi all,
I''m learning Rails by Example (chapter 11), by Michael Hartl (
http://ruby.railstutorial.org/chapters/user-microposts#top) but I got no
route matches when I try to delete one micropost.
the _micropost html is...
<tr>
<td class="micropost">
<span class="content"><%= micropost.content %></span>
<span
2006 Mar 30
4
redirect_to("url") with post?
Is there a Rails-friendly way to redirect_to an url and post some
parameters with that?
I''ve tried:
redirect_to("http://whatever.com", { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :post => { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :options
2006 Jun 18
1
plugings for date validations, email address validation & url validations in rails
Hi all,
Is there any standard plugin available for date validations, email address
validation & url validations in rails?
Thanks in advance,
Medha.
--
If not you then who.....
If not now then when......
-----------------------------------------------------
With Best Regards,
Medha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Apr 18
2
acts_as_commentable validations
Hi all,
I recently started back up with Rails and things are going well up until
now.
I''ve set up acts_as_commentable in my Post model and it''s working great.
Problem is users are able to create a "blank" comment. I''ve added the
following validations in the comment.rb file generated by
acts_as_commentable to limit the comment length:
[code]
2006 Feb 21
2
validations and directing errors
I am starting to play with validations as I want to catch errors before
SQL rejects inserts to the table which are ugly when nulls are sent to
''Not Null'' columns, etc.
If I do something in my model like...
validates_format_of :first_name,
:with => /^\w+$/,
:message => "you moron, enter a name"
I still end up
2005 Jul 28
8
dialplan defenition
Hello list,
Im writing my dial plan, in witch every SIP phone begins with 74 and has
more 3 numbers (like 74XXX).
So, I want to route all 74XXX calls to my sip channel. For this I wrote
this line:
exten => s,1,Dial(SIP/74118@193.136.252.5,30,r)
but this way all calls go to 74118@193.136.252.5 .....
Then I tried:
exten => s,1,Dial(SIP/${EXTEN}@193.136.252.5,30,r)
but this way, the
2016 Feb 24
3
search problem dovecot 2.2.21 + fts - Solr
Hello,
Realized update dovecot on my server. Now the search is returning
differently from the previous version bringing reference information of
other messages .
For example when doing a search for anderson.joao this new version of the
dovecot dovecot 2.2.21 + fts - Solr response will be all email that has the
word anderson and joao, instead of returning only items with the word
anderson.joao.
2006 Feb 21
8
Validations continued
I simply can''t figure this out. I have been reading and re-reading Agile
book and wiki.rubyonrails.org - all sorts of validation methods and
still, it doesn''t work.
Controller code
def create
@client = Client.new(params[:client])
if @client.save!
flash[:notice] = ''Client was successfully created.''
redirect_to :action =>
2009 Oct 22
2
ChanSpy in Asterisk 1.2.24
Hello
I have an old Asterisk where I need to listen to Agent calls. So I
created this code:
exten => _555,1,ChanSpy(Agent)
exten => _555,n,Hangup()
But I always get:
2009-10-22 16:00:38 WARNING[5695]: pbx.c:1720 pbx_extension_helper: No
application 'ChanSpy' for extension (default, 555, 1)
It seems that Asterisk doesn't have ChanSpy enabled... is this possible?
Which
2005 Jan 07
7
Problem with call pickup
I have configured call pickup, and this works fine.
Although there are 2 problems, perhaps anyone would know a solution to this;
- When I pickup a call from another set, the *8 code keeps being displayed
in my screen (Snom 220).
I would like it to show the phonenumber of the person calling me.
- When a caller that I've answered through Call-Pickup disconnects, my phone
does not close
2012 Jan 06
5
add data to a file while doing a loop
Hi,
I would like to know how can I keep adding data to a file while doing a loop and without deleting the data of the previous iteration. Thanks.
2006 May 09
3
validations erasing the form
Hi there
I have a for with a couple of text_fields. I''m doing some validation
via the model and when the validation "works" I get there was an error
on blah blah
the problem is the form is erased and I have to fill up the form again!
I saw that scaffold keeps the form filled when the validation "works"
but I dont know exactly what''s making it happen!
I would
2007 Nov 04
4
Hidden URL
Hello,
I have in my application a private public URL. For those who know
Flickr, it is sorta like the URL you give to your friend for them to
access your photos. Usually the URL looks like this:
http://www.domain.com/url/khjuytf678ysdfksdgihsd
Where "khjuytf678ysdfksdgihsd" is an encoded path. Let say I want to
have a public-private page for:
2006 Oct 31
3
Snom or Cisco Phones?
Hello
I need to buy IP Phones to work with Asterisk, and I'm in doubt between
Snom and Cisco Phones.
Can you gurus, please, give me your impression of these 2 brands? I need
to focus more in SIP and Asterisk compatibility and less in pricing
(yes, I know the Cisco are more expensive).
Are there any features that Snom has, that Cisco doesnt? And are these
features important?
Thanks
Joao
2006 Apr 12
2
billing with PostgreSQL
Hello to all
Im looking for a billing tool for Asterisk, that works with PostgreSQL.
All the tools I found in www.asteriskbilling.com just work with MySQL :(
Do you know a nice billing tool for Asterisk with PostgreSQL?
Thanks
Joao Pereira
2005 Apr 13
3
Document Management System
Hi all,
I was wondering if someone can give me some pointers to a good Document
Management System. I've been using Knowledge Tree for a while and just
wondering if there is something a bit more robust.
I'm archiving technical specs, functional documents, etc...
TIA,
Joao
Jo?o Medeiros
Linux User 381318