Displaying 20 results from an estimated 600 matches similar to: "Ajax Checkbox using Rails"
2006 May 03
2
Ajax, getting Data from the Database every 5 seconds
Hi,
I want to show 3 products every 5 seconds using AJAX. I want to get 3
random products from the database and show them. How would I go about
doing that?
Thanks
David
--
Posted via http://www.ruby-forum.com/.
2006 May 19
2
Error in IE, works in FireFox?
Hi,
I have an rjs that works just fine in firefox (no errors in FireBug). In
IE however it doesn''t.
When I tried to debug it, I arrived to the following:
1. page.replace of some element - fails in IE with "Object Error", even
if I''m replacing the element with a simple "<tr></tr>"
2. page.hide of that same element - works
3. page.remove of that
2011 Jun 04
2
Weird paramterized issue
Im using a parameterized class in my site.pp:
class development($user) {
class{"basenode": user => $user}
class{"nodejs": user => $user}
include "coffeescript"
include "ruby"
}
This class defines nodejs class that epects a user as input:
class nodejs($user) {
class {"nodejs::npm": user => $user}
$node_ver =
2002 Aug 27
3
Local mount of Win shares.
Hi,
I have Samba server working just great.
Is there a way I can work the other way around, I mean - can I mount Win shares in the Linux?
Something like, making /shares/whatever see the files on //WinMachine/sharename?
This could be good for backing up the files from the Windoz with the Linux box.
Ronen Baram
System & Network Administrator
Coreflow - Scientific Solutions ltd.
P.O. box
2007 May 24
3
Extensible logging framework
Attached is a quick patch which adds a logging framework to compiz.
I think it should be fairly self explanitory.
I think it should allow plugin writers to extend it for any purpose, but
I would appreciate any feedback or comments before going any further.
Regards
Mike
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: logging.diff
Url:
2006 Aug 16
6
error with edge rails
I''ve started an app with rails 1.1.6 then ran freeze_edge. My app
will not run with rails in the vendor folder. Have I forgot to do
something? I"ve been without the internet for the last two months.
Has something changed?
2006 Jul 01
6
Sorting by an attribute on a associated table
So, I have a User has_many :profiles. The most recently dated profile is
considered the current one. I need to sort these users by name, but the
name attribute is a member of the associated table.
Is there any easy way to do this other than with some ugly find_by_sql?
Maybe a more general question - is there a common solution to sorting in
Ruby?
--
Posted via http://www.ruby-forum.com/.
2006 May 12
4
default value in text field
hi,
This should be really simple, but i cant seem to find the answer
anywhere!!
In my _form.rhtml I have the following text field, how can I define a
default value?
<%= text_field ''purchaseorder'', ''number'' %>
--
Posted via http://www.ruby-forum.com/.
2006 Feb 09
2
write.table
Hello!
When using the command "write.table" I want to convert the format: 5e-04
to .0005. How can I do it?
The only option I found is to use write.matrix but then I cant add rownames.
Thank you
Ronen
[[alternative HTML version deleted]]
2002 Feb 16
1
Files to backup
Hi ppl,
I have a question more then problem, if I'm going to reinstall my Linux box from scratch, what do I have to backup for the Samba to work, beside the smb.conf & smbpasswd?
Are those files enough to save the configuration?
--------------------------------------------------------------------------------------------------------------
1. "Only Dead Fish Go With The Flow"
2006 May 10
12
how best to implement lookup table?
Hi all -
I''d like to implement a lookup table in my app that contains some
reference data, just some status codes and their descriptions. What''s
the most appropriate approach according to the "rails way" of doing
things? Would I just implement a has_many relationship? Let''s say
these are Order status codes, would the StatusCode have many Orders?
This
2006 Jun 12
5
Method in Model
I have a simple method in a model, to send out e-mails via the
script/runner.
def Reminder.dropoff
@messages = Reminder.find(:all, :conditions => [ "time < now()"])
@messages.each do |mes|
Mailman::deliver_send_message(mes)
end
end
However, it''s not sending e-mails.
When this exact code was dropped in a controller, it worked great... is
there
2006 Jun 30
6
using rjs
Hi
I am relatively new to ruby on rails. I want to use this javascript
bundle:
http://prototype-window.xilinus.com/index.html
How would I call those functions in an rjs file?
example:
win = new Window(''window_id'', {title: "Sample", top:100, left:350})
win.getContent().innerHTML = "<h1>Hello world !!</h1>";
win.setDestroyOnClose();
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of
my class "entity". Entity is ActiveRecord. I''m able to retrieve all
sorts of data from an @entity, until I do something like:
<% for @attribute in @entity.attributes %>
<div id="attribute_<%= @attribute.id %>">
<%= render(:partial =>
2006 Jun 27
4
RJS Form Values
Hi,
I have the following code :
<%=link_to_function("? | China", update_page{|page|
page[''tags_en''].value = "China"
page[''tags_ch''].value = "?" }) %>
This updates two text fields with the China and ?. However I want to
append the values, not replace them. So I need something like this :
2006 May 02
9
Visual Migration Design Tool
For a really long time, I''ve been using DBDesigner from FabForce.net.
For those of your who''ve never used it, its a freeware visual
entity-relationship diagram tool, which allows you to make database
designs visually instead of in SQL DDL. You can then use it to generate
the SQL to make your databse design into reality, or even run a
"synchronize" to make any
2013 Nov 13
2
[PATCH net-next 4/4] virtio-net: auto-tune mergeable rx buffer size for improved performance
On 11/13/2013 12:21 AM, Michael Dalton wrote:
> Commit 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag
> allocators") changed the mergeable receive buffer size from PAGE_SIZE to
> MTU-size, introducing a single-stream regression for benchmarks with large
> average packet size. There is no single optimal buffer size for all workloads.
> For workloads
2013 Nov 13
2
[PATCH net-next 4/4] virtio-net: auto-tune mergeable rx buffer size for improved performance
On 11/13/2013 12:21 AM, Michael Dalton wrote:
> Commit 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag
> allocators") changed the mergeable receive buffer size from PAGE_SIZE to
> MTU-size, introducing a single-stream regression for benchmarks with large
> average packet size. There is no single optimal buffer size for all workloads.
> For workloads
2006 May 10
12
Strange Behavior on Non-Index Pages
If I browse to \myRoRApp, I get the "Welcome aboard" screen.
I''ve done the ruby scripts/generate controller MyTest, and "Rolling with
Ruby on Rails" tells me I should be able to browse to \myRoRApp\MyTest
and see an error page, but what I''m actually seeing is a fastcgi config
file!
I have installed fastcgi, but apache can''t "see" the
2006 Mar 27
7
rjs template ? (how to check for existence of a dom element?
In my rjs template I''m using the following line.
page.visual_effect :slideUp, ''comment_error_details'', :duration => 0.5
It works fine if I have created the div with the
id="comment_error_details",
but if I haven''t created the error yet then my whole rjs template fails.
How can I check to see if an element has been created? I could then put