Displaying 20 results from an estimated 10000 matches similar to: "Looking for an example ..."
2006 Apr 14
11
Whats the best Ajax way to update a textarea''s text?
I am looking for a way to update the text-value within a textarea from
an Ajax render call inside of a controller. Is there a way to do this
without rendering an the partial containing the textarea?
Thanks,
Andy
--
Posted via http://www.ruby-forum.com/.
2006 Apr 03
4
Layout Question w/ code from vendor library
I am new to Ruby on Rails in general and apologize if this question is
trivial and/or has been asked before ( my searches did not turn up any
threads ).
I am using the cookies function from actionpack which I have located in
my vendor/rails/actionpack directory.
Using:
cookies[:username] and cookies[:password]
from within a controller file works just fine, I am able to set and read
2006 Apr 10
3
form_remote_tag can only have one submit button?
I setup a form_remote_tag with several submit buttons, all of them share
the same name
( ''do_action'' ) and their values differ.
eg.
button1 named do_action with value ACTION1
button2 named do_action with value ACTION2,
etc
No matter which button I press the value passed is always the one
defined for the first of these buttons ( the correct value associated
with the pressed
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with
an additional javascript directive?
eg I''d like for an inline javascript to make the form''s div container
hidden as soon as the button is pressed to avoid having it possibly get
pressed again ( sometimes the rails response is slow enough for a user
to think they need to re-press it ).
example:
<div
2006 Apr 03
1
Q: periodically_call_remote ( how to make it execute just once? )
I posted this ealier on the web forums but noticed a similar question
about this function and one user responded to try this list instead. If
anyone can help I would greatly appreciate your suggestions.
Q:
Is there a way to use periodically_call_remote to run just one time
instead of every '':frequency'' seconds?
I tried putting the call inside the div container thinking it
2006 Apr 24
9
Confusion with expressing many to many relationship
Hi folks, I am in the process of converting an existing non-rails
application to rails, and am not sure what the best approach would be
for specifying the relationship between the two sets of data.
I''ll describe the existing table structures first.
Table 1: Urls
Each url has a unique id and two lists of Phrases, these are currently
setup as varchars with "," delimitation -
2006 Apr 28
9
Q: Timing of render :update in an action ?
Hey folks, am hoping someone can set me straight with a solution to an
issue that has come up involving the timing of rendered page elements in
relation to the completion of an action''s execution.
I have an ror search app which searches through two tables consisting of
7,000 page urls and a table w/ 87,000 related keyphrases within those
pages. Search results can take anywhere from 2
2014 Jul 23
3
[PATCH v3 net-next 0/2] rx busy polling support for virtio-net
Hi all:
This series introduces the support for rx busy polling support. This
was useful for reduing the latency for a kvm guest. Instead of
introducing new states and spinlocks, this series re-uses NAPI state
to synchonrize between NAPI and busy polling. This grealy simplified
the codes and reduce the overheads of spinlocks for normal NAPI fast
path.
Test was done between a kvm guest and an
2014 Jul 23
3
[PATCH v3 net-next 0/2] rx busy polling support for virtio-net
Hi all:
This series introduces the support for rx busy polling support. This
was useful for reduing the latency for a kvm guest. Instead of
introducing new states and spinlocks, this series re-uses NAPI state
to synchonrize between NAPI and busy polling. This grealy simplified
the codes and reduce the overheads of spinlocks for normal NAPI fast
path.
Test was done between a kvm guest and an
2001 Feb 12
3
ie5 install?
I am trying to install ie5 to test webpages and their apperance.
Unfortuantely i am getting this annoying dialog error:
"A previous program installation was never completed. You need to restart
your computer to complete that installation before running Internet
Explorer Setup. Setup will now close."
What in the heck is this?? Restart what computer? Heck no! I don't
understand
2006 Jun 01
10
Stylesheets not being recognized
I am a newbie, but have worked through 4 or 5 tutorials. I am using
InstantRails. The problem is that I cannot determine how the style is
being included. I have modified the stylesheet from
/public/stylesheets/, even removed it. All to no avail. The inline
<style>...</style> code is still being included from somwhere. Where?
What am I missing?
thanks,
steve
--
Posted via
2006 Apr 20
8
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
2006 Apr 03
2
undefined method `scaffold'' for #<LocationsController:0xb7a9e858>
Would anybody know why I get this error from this bit of code:
class LocationsController < ApplicationController
def index
scaffold :locations
end
end
This is the way that is demonstrated in the screencast for creating a
quick scaffold. I have done this before. However, I come back to
working with Ruby after about a month on something else and now it
gives this error.
Any
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account
2006 Apr 21
6
when using scaffold flash[''notice'']
Hi,
When using the scaffold standard new / create methods, on successful
completion of creating a new database entry, is there any return
methods I cna pick up in a custom tempalte such as flash[''notice'']?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jan 23
2
scaffolding generators and pluralization rules
I''ve been working through the "Rolling with Ruby on Rails" tutorial and have come up against something I''m hoping someone here can help me understand.
In part two of the tutorial, Curt introduces the "ruby script\generate scaffold re
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Feb 07
3
OTP?
Hello,
I was wondering where I might find more information about using OTP as
an authentication protocol with dovecot. In searching, I found a thread
from 2004, but not much information about how it has progressed from
then. I also saw some promising patches from mid-last year, which if I
had to guess are probably the addition of support for the SASL OTP
mechanism. Is this available in a
2009 Dec 21
3
Looking for Windows port
Samba has been around for several years and seems mature but I cannot find a
Windows port anywhere?
I want to write code once and run same on Linux and Windows but this gap
prevents me.
Has anybody tried?
Thanks for your consideration.
2005 Sep 22
5
Adding Categories to the Depot example in the Agile Rails book
Hi ya, I want to add categories to the depot example in the Agile rails
book.
These are my thoughts:
Create a new table called categories with id, title, description, and
image fields.
Add a new field to the products table called category_id
Create a model called Category with "has_many :products"
Now I should have a one to many link between the products and categories
tables?
Now
2003 Nov 10
3
Asterisk and Polycom Soundpoint IP600
This Polycom phone seems to be one of the best on the market for sound
quality and features. I have seen on the list that some people have gotten
the IP 600 to work with Asterisk. Does anyone have the details of how to
get this working i.e. XML phone config files, and any thing else I might
need to know.
Thank You,
Chad Cowan
-------------- next part --------------
An HTML attachment