Displaying 20 results from an estimated 2000 matches similar to: "form_remote, getting data from submit"
2005 Dec 27
4
acts_as_versioned
Hi,
I'm integrating acts_as_versioned (ar-versioned.rubyforge.org) in my
customized CMS rails application to set up revision control for pages.
Getting and viewing versions works allright, but when I try to revert
to a version in the following way, nothing happens to the actual data
in the object.
Link from page:
<%= link_to image_tag('revert'), :action => 'do_revert',
2006 Jan 11
1
Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''
Hi list,
I keep getting the following error:
NoMethodError in Admin#create_survey
undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>
contents of Admin#create_survey is:
@template = Survey.find(params[''survey''][''id''])
render :layout => false
I have no idea where this comes from, bug in Rails?
--
Michiel Sikkes
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my
controller, all the other actions use the application.rhtml layout, so
what i''m doing is ...
class SomeController < ApplicationController
layout "simple", :only=> :some_action
......
end
and the "simple" layout is applied to all the actions, can someone
please give me a hint?
2013 Jan 22
2
Rails 4: Should a HEAD request not be handled like a GET for CSRF protection?
I am running a Rails 4 app in semi-production and I constantly get
exceptions from crawler bots that use a HEAD HTTP method, which causes the
CSRF protection to kick in.
Shouldn''t HEAD requests normally be handled like GET requests?
I am not sure if I''m just being stupid or that hit is a bug somewhere.
Michiel
--
You received this message because you are subscribed to the
2006 Jan 12
0
Apache proxy + lighttpd + rails
Hi list,
I''m having another problem deploying my Rails application. I set up
the servers and apache2 configuration using the excellent essay by
Duncan Davidson:
http://duncandavidson.com/essay/2006/01/railsonapache
However, he describes proxying using a subdomain. What if I want to
proxy the requests of www.domain.com/railsapp/<url> to
www.domain.com:8888/<url> and reverse
2006 Apr 25
0
Submit a form_remote from arbitrary JS
What I want to do is trigger an AJAX form submit from an event handler
for a form element. The form is named, and I tried calling
formname.submit() from the onblur handler. However, instead of using the
settings from the form_remote_tag above it, the form ends up submitting
the whole browser.
I know what you''re thinking, why not use an observer? I tried that, and
I ran into some
2013 Feb 01
2
help on proportions
Hi:
Apologies for asking the following question. As?this may sound very basic and stupid for this forum?, I honestly do not know how to solve it and I do not have a teacher who can help me understand.
?
I have list of genes (200)?that are involved in a particular process and I call this as a?ProcSet.?? From an independent experiment I found that out of 10,000 genes, 1500 are significant and I
2008 Jun 17
4
Formating Date Field
First.jsp
------------------
<jsp:usebean id="db" class="db.dbClass" scope=session/>
<html>
<body>
<form action="MyAction.jsp" method="post">
<% ResultSet rs=db.executeQuery("select no,name from mytable");
while(rs.next())
{%>
<input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2007 Nov 15
2
Story adapter and SQLite Was:What command to run all stories?
Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
rdebug on it and it is trying to call
I ActiveRecord::Base.connection.begin_db_transaction. from
ActiveRecordSafetyListener.scenario_started. I don''t think SQLLite
likes transactions.
Ed
On Nov 15, 2007 10:56 AM, Ed Howland <ed.howland at gmail.com> wrote:
> If I run the story stand-alone, I get:
> ruby
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
2007 Mar 01
1
Problems with RC1 & Rails Controllers
I''m now using the 0.8.0 RC1 gem and have the same version of rspec
and rspec_on_rails checked out into my vendor/plugins directory.
I''m having a problems with controllers... I''ve generated a controller
using the ./script/generate rspec_controller MyController. When I
try to run the rake spec:controller task I get the following:
euclid% rake spec:controllers
(in
2005 Mar 04
2
budgetphone
Hi all,
I registered a SIP account at budgetphone.nl/talkin2ya.nl
Receiving calls works like a charm, I even redirected my
normal PSTN number to the number I got from them so
everything ends up in my * server.
Before I ask them to take over my normal phone number I
wanted to test all of it, so I ordered some calling minutes
to test. Now I cannot get outbound calling to work with
them. Anyone here
2007 Dec 18
2
R brakes when submitting a query to MySQL
Hello,
I would like to retrieve data stored in MySQL database, so I installed
RMySQL package.
I can successfully connect with the my database using the following code
> dvr<-dbDriver("MySQL")
> con2<-dbConnect(dvr,group="exbardiv")
> mysqlDescribeConnection(con2)
<MySQLConnection:(972,0)>
User: mmorag
Host: localhost
Dbname: exbardiv
2007 Nov 15
5
What command to run all stories?
Hi, I''ve been following this thread and I can get the example stories
to run with the ruby command. But I''ve been unable to get the example
from http://blog.davidchelimsky.net/articles/2007/10/25/plain-text-stories-part-iii
to run with all.rb
ruby stories/all.rb
/home/edh/story/stories/additions/steps/addition_steps.rb:2: undefined
method `steps_for'' for main:Object
2012 Nov 06
2
[LLVMdev] Help needed on debugging llvm
On 6 November 2012 14:52, Duncan Sands <baldrick at free.fr> wrote:
> Hi Anitha,
>
>
> On 06/11/12 10:19, Anitha Boyapati wrote:
>
>> Hi Duncan
>> I am facing a build error about __builtin_iceil
>>
>
> it's surely just that dragonegg doesn't have any support for this builtin.
>
ok. Just verified that Target.cpp and x86_builtins do not have
2006 Sep 20
5
acts_as_ferret limit on multi_search not working?
I''m using acts_as_ferret to do a query like this:
Model1.multi_search("my query",[Model2,Model3], :limit => 2)
No matter what number i set limit to I get 10 items in the resultset. Am
I doing something wrong?
Thanks/David
--
Posted via http://www.ruby-forum.com/.
2006 Feb 25
2
sipgate.de question
Hi,
Anyone here using sipgate.de ?
It worked for months, but for a couple of days now I'm
unable to register with them.
My account is ok, because I can login to the website.
Asterisk keeps showing me:
Feb 25 23:50:18 NOTICE[5144]: chan_sip.c:5269 sip_reg_timeout: -- Registration for 'XXXXX@sipgate.de' timed out, trying again (Attempt #n)
I looked at the sip debug stuff, and all I
2005 Feb 16
4
Dutch VOIP-PSTN provider
Hi,
I read a lot about US providers that can terminate a PSTN
number for you and offer IAX or SIP connectivity.
Does anyone know such a company in The Netherlands ?
I read about Unet. Anyone with experience with them ?
Any information is welcome.
--
Michiel van Baak
http://lunteren.vanbaak.info
michiel@vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D
2005 Jan 31
1
congestion problem with only one number
Hi all,
I have this weird problem.
I'm running asterisk 1.0.3 on Debian Sid (official debian package).
We have 2 fritz ISDN cards.
All is working great.
Till I called the bank. It rings one time and then gives me
the congestion tone.
Here is what I see on the CLI (phone nr obfuscated for
privacy reasons):
-- Executing Dial("SCCP/michiel-00000004",
2005 Aug 17
8
DECT gateways
Heya list,
I need some advice/experience.
Some of our customers are asking us about DECT solutions for
their asterisk install. Some others will not go to asterisk
if there won't be a DECT solution.
They now have a Siemens or a Samsung PBX. Those PBX-es come
with a DECT basestation and optionally repeaters etc.
All those basestations speak some own protocol to the PBX,
so we cannot use them