Displaying 20 results from an estimated 700 matches similar to: "Scaffolding: Create, Edit, Destroy in admin area"
2008 Jun 25
5
Symfony like "forward404"
Hi community,
as I''m a previous PHP and especially symfony programmer, I often try
to find features of symfony in rails. Now I''m looking for a method
which forwards to a 404 error page (but with stack trace and so on in
development mode). I tried to manually render public/404.html, but if
I do so, I miss the stack trace. Is there a method like this or are
rails programmers using
2008 Aug 22
1
Adding style attribute to authenticity_token
Hi all !
Whenever I call form_for a div with margin:0 and padding:0 is created.
Not only that is the default value in my application.css, I have no
chance to override this attribute. In my application I display a list
of items, using <ul> and <li>. Each li tag contains an form, which
should be displayed in one line (as inline element). But I can''t set
the div to
2008 Nov 03
17
SQL queries in Rails
Hi...
I want to know the equivalent instructions to insert, update, search
and delete a registry. I know Rails can do it easily Thanks to
ActiveRecord, but here''s the catch: I''m using PostgreSQL. As I''m using
SQL to do the migration (Including the foreign keys), I need to know
if I can use SQL queries to do those actions. Is there an example out
there?
I uncommented
2008 Jan 21
7
undefined method error
Hello everyone,
I am following the Practical Rails: Social Networking
sites book. In chapter 7 photo gallery I am getting a
NoMethodError in Pages#show
Showing layouts/_menu.rhtml where line #12 raised:
undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c>
Extracted source (around line #12):
9: <% if is_logged_in? %>
10:
2014 May 16
0
(Beginner) ActionController::UrlGenerationError - No route matches
(Using Rails 4.1.1 with Ruby 2.1.1 on Mac OSX 10.6 Snow Leopard)
I'm doing a Rails tutorial (in case you are interested in: It's
http://guides.rubyonrails.org/getting_started.html), and I'm stuck on
the following:
I create in some erb file a link using
<%= link_to 'Add new weird stuff', controller: new_article_path %>
and this raises the exception
1997 Aug 04
23
smbpasswd
I have finally managed to compile and install samba 1.9.7alpha5 with
des, shadow passwords and PAM.
I have a new problem now.
my 95 clients when set to user level access control and try sharing
something give this error.
"You cannot view a list of users at this time. Please try again later."
I belive this is because the rights on the file smbpasswd [the file
containing the passwords]
2013 Mar 07
7
Extension cant pickup calls but can transfer.
Greetings.
I got an extension on my Elastix who cannot pick calls on the other
extensions, but It can transfer his calls to the other extensions. When
this extension tries to pickup a call pressing *8 it simply does not pick
it up. Transfering calls works just fine so dtmf may be not the problem.
Where should I look?
Any further information needed just ask.
--
Att.*
***
-------------- next
2011 Nov 28
1
centos asterisk 1.8 rpms: chan_gtalk and res_jabber missing?
Hi All,
While I'm certainly comfortable compiling from sources, I'm trying to do an
rpm only asterisk install on CentOS 5.7. I'm using the asterisk
repositories and I installed all the asterisk18 rpms, but find that
chan_gtalk and res_jabber are missing.
Is there a separate rpm that includes support for gtalk?
Thanks in advance.
-Gaurav
-------------- next part --------------
An
2010 Jul 20
4
Call not going through and failing because "never answered"
Hi,
I'm trying to use Asterisk to place Automated Voice Calls.
A verbose log from Asterisk CLI taken when I place a call in the spool
directory looks like this:
-- Attempting call on SIP/MTN-NEW/my-number for application
MP3Player(/myfile) (Retry 1)
== Using SIP RTP CoS mark 5
> Channel SIP/MTN-NEW-00000005 was never answered.
[Jul 20 10:52:11] NOTICE[14580]: pbx_spool.c:339
2011 May 03
1
audiohook.c: Failed to get 160 samples from write factory
Hello,
I see a lot of these messages in the debug log :
/[May 3 15:47:09] DEBUG[19081] audiohook.c: Failed to get 160 samples
from write factory 0xae17e18
[May 3 15:47:09] DEBUG[19081] audiohook.c: Failed to get 160 samples
from write factory 0xae17e18
[May 3 15:47:09] DEBUG[19081] audiohook.c: Read factory 0xae173e0 and
write factory 0xae17e18 both fail to provide 160 samples
[May 3
2011 Apr 06
4
Call recording - methodology
Hello Everyone;
I am looking for a solution to record calls that come into our Asterisk
server. I am hoping for something that is easy to use - however, if I
have to modify it to make it easier to use, I do not mind.
Does anyone know of any opensource or otherwise solutions out there that
I can try out?
Thanks much.
Glen
2006 Dec 11
0
auth_generator 2.0.1 undefined method `login_required' for ... ArticlesController
I am a relative RubNub and attempting to implement auth_generator v.2.0.1.
I am getting an "undefined method `login_required'' for
#<ArticlesController:0xb732c0b4>" error when I attempt...
http://localhost:3000/articles/new
Help would be appreciated.
My app/controllers/application.rb reads...
------------------------------------------------------------------------
2012 May 05
2
Mysql identifier not found
Hello,
notice in the console output beneath that there is a resultid 6 but it
can not be cleared :
[May 5 11:46:27] -- Executing [s at sub:3] MYSQL("SIP/vart-00000336",
"Connect connid localhost dialplan host Asterisk") in new stack
[May 5 11:46:27] -- Executing [s at sub:4] MYSQL("SIP/vart-00000336",
"Query resultid 4 DELETE FROM pickuptbl WHERE
2012 Jun 18
1
TDM410 PTSN line setup with 1 analog phone
Hello, I have a current asterisk 1.8.13.0 asterisk-addons 1.6.24 asterisk-sounds
1.2.1 dahdi-linux-complete 2.6.1+2.6.1 libpri 1.4.12 and asterisk-gui 2.1.0.rc1
(not trying to use the gui, want to do everything by hand) with a TDM410 with
2FXO and 2FXS. I have my POTS (PTNS) line plugged into port 1 (FXO) and a
analog phone connected to port 3 (FXS). I compiled asterisk with asterisk
2006 Apr 27
2
problematic admin/views
ok, i have a pretty almost finished (frontend) blog, i have defined an
admin zone with authentication to add content, now im getting trouble
with the views for the controllers in the admin zone, here you can see
my file structure:
http://img284.imageshack.us/my.php?image=tmpviews6oq.gif
and my admin controllers like this:
controllers/admin/admin_controller.rb
class Admin::AdminController
2011 Dec 15
4
Partner Keys on Innovaphone
Hello,
when using BLF with Asterisk 1.6, I notice that the Caller-ID
information is not displayed on the monitoring key of my Innovaphone IP200A.
If the IP-phone of my colleague rings, I should see on my partner key
the number of the caller. This is information that is being send in the
xml-body of the NOTIFY-message.
I do not see this information in the xml-body of a NOTICE-message from
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
I''m having trouble testing my Rails 3 application. Unit testing
doesn''t work. If I try ruby article_test.rb directly, I get a "no
such file to load" error, and if I try rake test:units or ruby unit/
article_test.rb I get this odd "superclass mismatch for class
ArticlesController" error!
I''m hoping I can get this settled...
My test files were
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2005 Aug 17
4
Stop an action ?
Hi.
I am working on a generic authentification system for rails (more
complete than the login generator). The way it works is you call a
method inside your action, passing the domain as a parameter (domains
are like a group of users with specific rights).
For that purpose, I need to exit the action inside this method because
it redirects to a login page if that person isn''t
2011 Apr 23
2
DTMF not being sent ( RFC2833 )
Hello,
I installed Asterisk 1.6.2.17.3 ( latest as of yesterday ) and had multiple problems with DTMF.
I have two machines, we'll call them asterisk and asterisk-pri. Asterisk does IVR and asterisk-pri has a PRI card in it and connects to the PSTN. The two servers communicate via SIP with RFC2833.
I setup logger.conf on both machines to display DTMF to the console. Both are built from