Displaying 20 results from an estimated 200 matches similar to: "need help for simple form tag (noob)"
2006 Feb 09
6
troubleshooting an observe_field
Hi,
I''ve got a live_search field in a partial that is on several different
pages. On all pages, except 1, it works fine. On the page it doesn''t work
on, it seems it never executes it action.
Here''s my observe_field code inside the partial:
<h1><label for="searchtext">Live Search:</label></h1>
<%= text_field_tag :searchtext
2006 Jan 26
3
global objects?
Forgive the term global if that''s not applicable in rails (i come from a
php background)
I have a browse controller with a couple of different methods
def method1
@properties = Property.find_all
#other stuff for that method
end
def method2
@properties = Property.find_all
#other stuff for that method
end
def method3
@properties = Property.find_all
#other stuff for that method
end
I
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as
this, it is sometimes easy to get missed in the shuffle.
I am trying to create, display and edit a referenced object''s text field
on the same view as my root object.
For example:
-------------------------
Quiz: <<quiz.name>>
Preamble: <<quiz.preamble_presentation.text>>
Postamble:
2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello,
Is there a way to set the html element id for the form_tag and
form_remote_tag on the server side?
I want to have this resultant html...
<form id=''something'' ...
...
</form>
Thank you,
Brian Takita
2014 Aug 20
1
Panic at virtual folder fts-search-serialize.c
Hi all,
I'm using dovecot 2.2.13 with virtual folders and fts-solr (see attached
dovecot-n.conf). At using virtual folder with fts, the dovecot crashes
with following panic:
Aug 20 10:49:43 imap(...): Panic: file fts-search-serialize.c: line 63
(fts_search_deserialize_add_idx): assertion failed: (*idx < buf->used)
Aug 20 10:49:43 imap(test4 at india.com): Error: Raw backtrace:
2006 Jul 09
4
Search terms in URL
I have set up a ferret search using the examples in the demo app. Is it
possible to have the search terms included in the URL, so that, for
example, users can bookmark a search results page ?
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
4
Using onSubmit tag in form_tag?
Hi guys,
I have been working on a form that would use javascript to validate the
data before submitting it, and from my view.rhtml I have a statement
like this:
However such a statement generates a HTML tag that looks like this:
<form action="/users/Login?onSubmit=validate%28%29" method="post">
Seems like Rails thinks it is a parameter instead of an option, so
2007 Mar 16
7
how to send mp3 inline?
hey all,
I''m trying to do a:
send_file @file, :type => ''audio/mp3'', :disposition => ''inline'' ,:stream=>true
I tried with all browsers and it always asks me to download the file
or open it with a player. Is there a way to make it open in the
embeded player (QT,Windows media player,Mplayer etc)? Only with
konqueror if I open in new tab then I
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in
this context. :o(
As near as I can tell, it doesn''t work at all.
I would expect that clicking on the [Next Question] button in the
browser would fire the next_question method in the current controller.
Instead, it (apparently) does nothing.
The tag in question
<%= submit_tag ''Next
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get".
The rhtml code:
<%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %>
The generated html code:
<form action="/teritory/add?method=get" method="post">
What i''m doing wrong?
--
They say money can''t
2007 Nov 09
26
RSpec on Rails 2.0
I have a project on edge rails that I''m trying to convert from Test:Unit
to rspec. I have the rspec gem version 2338, the rspec and
rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in
vendor/rails.
I''ve been able to get a few specs passing, have gotten the specs running
from autotest, and am able to do "rake spec:doc" and get the basic
command
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance.
Although I have many years of experience in general, including cross-
platform processing, I am not an HTML/Javascript programmer. As a
result, I do not have certain specific baseline skills and/or knowledge
that are presumed in the Rails and Ajax documentation.
I am experienced with DOM manipulations, so the bare mechanics of
manipulating the browser GUI via Javascript
2006 Feb 26
1
Help with ruby=>html
Hi!
I''m new to ruby and rails and got problems with using basic methods like
form_tag or link_to etc to create what i need, i.e. to specify css class
or id or name of html elements.
I have problem with understanding rails api (it''s just as an example):
form_tag(url_for_options = {}, options = {}, *parameters_for_url)
what parameters can i pass to form_tag? How to specify
2008 Apr 28
16
GiT and Edge/Trunk Rails
I have a sub-application project that I had previously converted to edge
rails under svn. Originally, vendor/rails was set up with svn:externals
so that an svn update at the project''s root would pull the latest trunk
along with all the other updates. Since Rails has moved to GiT and
depreciated svn I decided to remove the svn:externals reference for
vendor/rails and reinstall trunk using
2006 Oct 25
4
need help on special HABTM relation
hey all,
I have three tables like this:
forum (id,title)
usergroup(id,title)
forum_perms(usergroup_id,forum_id,read,write,post)
is there a way to deal with that kind of relation with rails such as by
using has_and_belongs_to_many kind of stuff?
thanx in advance
Pat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Apr 22
0
Sending arguments to filter methods
I want to set up a before_filter, and I want to be able to pass it
some parameters. My method looks like
def my_filter(a)
...
end
And I want to do
before_filter :myfilter ''a''
I''ve tried the above and
before_filter :myfilter, ''a''
but neither one is acceptable. How can I specify an argument to pass
in to the filter method?
Pat
2007 Jun 06
4
globalize+acts_as_ferret
Hey all,
I''m using acts_as_ferret and globalize. I stumbled upon that post on google:
http://osdir.com/ml/lang.ruby.ferret.general/2007-01/msg00068.html
does anybody know if it''s included in the latest a_a_f or if it''s
planed to be? I can''t seem to find anything about it.
thanx in advance
Pat
2007 Aug 15
2
need help on writing a plugin
Hey all,
I''ve just "script/generate plugin my_plugin" and I would like to
"overload" one of my view. Say I have app/views/sessions/new.html.erb
and I would like to rewrite that file without touching it using the
plugin. Any idea how to do this? I would also like to do the same
thing with models and controllers of my application. I couldn''t find a
tutorial
2010 Apr 30
2
Steve Jobs about theora
I guess you've all read it already, but here it goes:
"All video codecs are covered by patents. A patent pool is being
assembled to go after Theora and other ?open source? codecs now.
Unfortunately, just because something is open source, it doesn?t mean
or guarantee that it doesn?t infringe on others patents. An open
standard is different from being royalty free or open source.
Sent
2006 May 14
4
searching on foreing keys
Hey all,
I''m using a simple search function. It''s working
great except for foreign keys.
I have one table pets (id,name,owner_id)
and another table people(id,name)
owner_id being a foreign key of pet pointing to people name.
here it is on the pet controller:
@paginator, @pets= paginate(:pets, :conditions =>["name OR owner_id
like