Displaying 7 results from an estimated 7 matches similar to: "A quick question on forms"
2007 Jul 31
0
Edit not working with named routes
HELP! I''m a relatively new rails user and I''m stuck. I''m trying to
build a relatively simple blog and I decided that I liked the way
named routes look in the code. So I added
map.resources :posts
to my routes.db file. I then went through and updated my controller to
take advantage of the named routes that were generated. I also updated
all of my views and everything
2006 Jul 22
0
RSS XML Generation Problem
I''m getting an interesting problem. I''d trying to generate an RSS document
and then real it from outside of my app. Here''s what the view looks like.
xml.instruct! :xml, :version=>"1.0"
xml.rss(:version=>"2.0"){
xml.channel{
xml.title("mytitle")
xml.link("http://www.myapp.com")
2006 Apr 02
2
Focus on ajax newly-created form element
I have an ajax method that creates a new form. I want one of the
input boxes to be focused when the form gets displayed. So in my
inline RJS I have
page << "document.getElementById(''post_title'').focus();"
The input box is being created with
<%= text_field ''post'', ''title'' %>, so the ID should end up being
2006 Jul 20
13
GoDaddy Woes
Has anyone had any luck setting up a Rails App using GoDaddy? I''m at my wits
end, I uploaded the site using the "instructions" in the Help Center but I
keep getting the
Application error
Rails application failed to start properly"
Error. I''ve lucked all over for help, and I''ve tried a bunch of things
(adjusting the chmod values of my dispatch files
2006 May 18
2
attempt to override the ''tag'' method
I want to override the ''tag'' method in
ActionView::Helpers::TagHelper to do some generalized
error handling similar to the way scaffolding puts a
red border around fields that fail validation.
I''ve created a file lib/rails_patches/tag_helper.rb
which contains the following.
module ActionView
module Helpers
module TagHelper
alias_method :orig_tag, :tag
2005 Oct 24
3
Unable to use forms after login generator
I''m using rails 1.8 and login generator 1.1. I''m using rails to manage the
contents of my website. I decided to put an admin page for the content
management. For the sake of convenience, I used Login Generator. Now when I go
to edit or create new content (for now, just posts), it gives me the following
error (this one is for new posts):
NoMethodError in Goblin#new
Showing
2006 May 22
6
how HTML_Option works?
Hi all,
all the form helpers can take a serie for options but I cant find any
documentation about them. Any one can point me toward one?
Or at least tell me how I can for example add a function that would be
call with the onblur event from a input box?
Thanks!
--
Posted via http://www.ruby-forum.com/.