Displaying 20 results from an estimated 20000 matches similar to: "multi lines in button_to"
2012 Aug 10
1
button_to with image
I''m calling button_to in my page, and it renders a form with a submit
button just fine. But what I''d really like is
<input type="img" src="myimage.png" .....>
instead of
<input type="submit...>
button_to doesn''t seem able to do this, :type and :src parameters get
ignored. Is there a way to do it?
--
Tim Slattery
2008 Feb 12
0
button_to problem http://localhost:3000/art/151470;edi
hi all,
now i am facing problem with button_to , it shows the path like
http://localhost:3000/art/151470;edit instead of
http://localhost:3000/art/edit/151470
the path is not displaying problem, so i got the error , no route found.
in application_helper :
def button_to(name, options = {}, html_options = nil)
html_options = html_options.stringify_keys
2006 Jul 24
2
:disable_with for button_to ???
With form_tag submit buttons I use the " :disable_with => ''button label while processing'' " option so that visitors with slow connections aren''t able to submit forms twice.
How do I do the same thing with button_to?
I''ve got several pages where there are multiple forms on the page being updated with Ajax so I can''t wrap the whole
2006 Mar 25
5
button_to with image?
I''m trying to use button_to and have it use an image in place of the
submit button. I had figured it would work the same as link_to like so:
button_to(image_tag("editicon", :size => "16x16", :border => 0), :action
=> ''edit'', :id => person.id)
but this instead displays the image code as the button name. Surely
there is a simple way to
2007 Feb 24
2
RESTful PUT and button_to
I''m working on a RESTful app, and I''ve hit a snag. Here''s a
simplified example of the problem. (Excuse me if this example code
isn''t strictly correct; I''m typing from memory.)
Suppose I have a table which models a simple counter. It has a single
column, "count":
class CreateCounters < ActiveRecord::Migration
def self.up
2009 Dec 13
20
Need help...NameError in InteractController#add_to_cart
Hi,I am developing a web app and am following the text-Agile web development.....Each time I click my "add to cart" button" i always get the page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed?
NameError in InteractController#add_to_cartundefined local variable or method `find_cart'' for
2011 Mar 31
2
multiple vhosts running off of one passenger/rails app
Hi,
I''ve been googling quite a bit - but up until now to no use :(
My problem is how to configure Apache conf (and perhaps Passenger) for
this setup to work:
<VirtualHost *:80>
ServerName oxen.company_A.com
DocumentRoot /var/www/html/oxen/sites/company_A/public
PassengerAppRoot /var/www/html/oxen
SetEnv OXID 23
</VirtualHost>
<VirtualHost *:80>
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello-
I would like to know what the suggested practice is for having multiple
submit buttons on a relatively complicated input page.
Let''s use the example of a Contact. There is lots of info there,
including name, address, phone number. There is also a list of "contact
associations" which can be modified on the same page.
Ideally, the user could have one
2012 Nov 30
3
Rails Course Booking System
Hi all,
i have just finished reading Beginning Rails 3 and have done as many
tutorials on the web I can find.
So I have decided for my first real project I would like to create a
system where an admin can created courses controlled from some sort of
back-end.
Users could then register an account book and pay for course utilizing
maybe some sort of calender system.
Am I starting out too big for
2009 Sep 22
3
RE: We're sorry something went wrong when I use -d mysql
Hi:
I am trying to make an application using mysql. When I do rails name --
d mysql, and then run mongrel. I will go to localhost:3000 and when i
check my application environment, I get an error We''re sorry something
went wrong.
Now, when I do the same procedure without using --d mysql and just use
the defalt sqllite. When I check my application environment it shows
the information.
2010 Jan 08
6
How to change a rails app to INstant rails app???
i have a rails app , i need to change that app to instant rails app.
i have been using Net beans as IDE
is der an easy step to do that???
rather creating a new one by copy paste?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Apr 04
0
Customized buttons for button_to()?
I wanted to use custom buttons, is there a way I can specify those?
--
Posted via http://www.ruby-forum.com/.
2010 Jul 02
22
MySQL not Connected ...... *pull hair*
I''m trying to run " rake db:migrate " and im getting an error back:
------------------------------------------------------------------------
C:\wamp\www\demoproject>rake db:migrate
(in C:/wamp/www/demoproject)
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
(`version`
varchar(255) NOT NULL) ENGINE=InnoDB
(See full trace by running task
2009 May 05
3
Oracle-JRuby error
I am trying to migrate from RoR/MYSql to JRoR/Oracle. I am using Active
Record JDBC to talk to the database. The Migration process to create and
populate the database tables has been painful. My latest issue is the
method new_date is undefined in the JDBC adapter. I have the following
gems installed:
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
2006 Jan 20
1
form_tag and multiple buttons inside problem
Hi, I have a bit of a problem with a form in rails. Well, the problem really is
me not fully understanding the mechanism of the form_tag, so here''s what i try
to do:
The idea is to present a some edit fields for some @product attributes and then
present a table showing the @product.pieces (pieces for every @product) and to
include a "Edit Piece" and "Delete Piece"
2012 Feb 21
0
nil can't be coerced into BigDecimal Options
hi guys im playing with RoR with the environment of rails 3 ruby 1.9 i
got stuck in
nil can''t be coerced into BigDecimal
error
i need to get the total cost of the products inside the cart i know
where the problem is(i think) but i almost did every thing
cart/show.html.rb
<div class="cart_title" >Your Cart</div>
<table>
<% for item in
2007 Sep 04
2
How can i add a confirmation dialog to a submit_tag?
When i use button_to or link_to, i can easily request a confirmation
dialog with (for example)
<%= button_to "Delete this story",
{ :controller => "story", :action => "delete", :id => @story.id },
:confirm => "Delete story: are you sure?" %>
I also want to do this for the submit buttons on my forms, which are
2012 Jan 24
7
Ruby update
Hello, I''m using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I''m still using
1.8.6). I downloaded ruby 1.8.7 here http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip
and unzipped files in the ruby folder of instantrails but when I check
"ruby -v" I still got 1.8.6 (I tried a gem update and same thing, some
gems
2011 May 28
0
Two buttons respond do same action.??
Hey
I am using rails 3.0.7.I created two buttons simply as:
<%= button_to "Great", :action => "click"%>
<%= button_to "click me", :action => "work"%>
Router.rb file looks like:
Check::Application.routes.draw do
# get "gne/clg"
get "posts/index"
resources :posts do
end
#get
2006 Jun 20
1
Soliciting suggestions - Form within a Form
Greetings!
I could use some suggestions on how to proceed from where I am to where I want to go.
I''m working on an app that collects info from the visitor and saves it to a file. The file can later be read in for update. To collect the info, the app presents a form with a set of checkboxes. The state of the checkboxes at initial presentation is controlled by a summary record that is