Displaying 20 results from an estimated 2000 matches similar to: "Form within table?"
2006 Feb 24
1
Help a n00b?
So I''m trying to do that hot new thing with AJAXy forms:
http://idiet.toasterwaffles.com/foods/list
Here''s the relevant code in list.rhtml (for the form portion)
<tbody>
<%= render_collection_of_partials "list_stripes", @foods %>
</tbody>
<tfoot>
<tr id="addFood"><%= form_remote_tag( :html =>
2006 Mar 15
2
link_to_remote issue after upgrading to rails 1.0
Hi
I''ve only recently noticed my notebook was using an old version of rails
(0.13), and so upgraded it to 1.0 (this is on gentoo linux).
The upgrade has broken some previously working code, and I''ve not been
able to find a work-around.
Previously the following call:
<%= link_to_remote("some string",
:update =>
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All,
This is my first post to the ruby message board so if my request is
better suited to another location just let me know,
The problem I keep coming up against is with a listing of objects and
updating that list via AJAX (for arguments we are talking about a list
of users).
As it stands I can currently submit a form, and update the list
(using :update
2009 Feb 05
2
Coding help : Where to log X11 forwards?
OpenSSH 5.1p1
I can't grasp why, when connecting with 'ssh -Y' to this
test host, I am not tickling the verbose() call below that
I have added.
I am logging as auth + verbose in sshd_config
The X11 forward for the session works fine as tested with
xterm.
At any rate, I am looking for some guidance on where
to log X11 forwards that are established, ideally with
a username and remote
2006 Mar 24
2
ajax redirection
Hi,
Is there a simple way to redirect towards another page (controller, action)
when using form_remote_tag ?
I used it tipically to check fields of a account login form. I''d like
if the user
exists, he''s redirected towards another page, otherwise I display some
error div''s.
Any ideas ?
Thanks a lot.
Seb
2008 Mar 28
1
recommendable softphones / X-Lite / Zoiper for amd64?
Hi,
I am on amd64 Linux and not really too happy with twinkle, linphone
and ekiga. Unfortunately, X-Lite and Zoiper, even though they
provide Linux versions (w00t!) have only x86 versions for download.
Do you guys know of amd64 versions of those, or can you recommend
other softphones that will run on amd64, or which come with source
code?
Thanks,
--
martin | http://madduck.net/ |
2003 Dec 27
1
Faked samba packages / rootkit?
Does anybody know of these samba packages?
http://ftp.cvut.cz/samba/samba-latest.tar.gz
AFAICS they are faked and contain some kind of rootkit (you can see
this in the history below. the server this history is from is taken
offline for security reasons, and nobody is there till 7th Jan I
can't give you more details)
> 144 w
> 145 cat /etc/issue
> 146 uname -a
> 147
2005 Dec 30
11
Losing my mind with Ajax link_to_remote
I''m playing around with Rails, and I can''t get this to work. I just
can''t seem to wrap my brain around it. I''m having some trouble doing an
Ajax navigation column. Here''s what I have:
view layout:
<div id="navigation">
<%= render(:partial => "navigation", :collection => @categories) %>
</div>
My
2006 Mar 22
2
n00b question
Total Ruby N00b here with a question about the Hibbs OnLamp tutorial.
I''m trying to hook up to my cookbook database and I''m getting:
ActiveRecord::StatementInvalid in Recipe#index
Mysql::Error: #42S02Table ''cookbook.recipes'' doesn''t exist: SELECT COUNT(*)
FROM recipes
RAILS_ROOT: ./script/../config/..
My thoughts:
I think I''m not actually
2005 Oct 11
5
show message while loading - ajax
Hello,
Could anybody please tell me how I would show a message or an image while
the ajax request gets processed?
thank you in advance for your help.
this is what I came up with but it doesn''t really work:
function getHTML() {
var url = "./scripts/rfiles.php";
var par = "";
var myAjax = new Ajax.Updater("fm-viewdetails", url, {method:
2008 Jun 18
4
help with manipulating data frames (survey analysis)
Dear all,
Can anyone recommend a good book or an online tutorial for using data frames
in R?
I want to do statistical analysis on some survey data and I can specify what
I would like to do very easily in algorithmic terms. However, being a n00b
to R I am struggling with getting R to execute what I want.
I think all I need is some source that directs me in the right direction by
walking me
2006 May 15
3
Page hit counter?
Hello all,
Yet another "don''t reinvent the wheel" n00b question:
Is there an ''official'' page hit counter plugin/code snippet/whatever? I
would need something like this:
- It is possibility to set a constant timespan (say 5 hours).
- On every page hit, save away @request.remote_ip and Time.new
- The counter gets incremented only if the same IP was here
2004 Aug 06
2
Problem with livice
Trying to get livice to work on my FreeBSD system..major 'n00b' so bear with
me :D
<p>When I run ./livice I get the following
-------------------------------------------------------------
/local/liveice/temp.playlist
...... done
setup_pipes()...
Initialising pipes for stream 0
Successfuly set up fifo .liveice_temp_files/raw.pipe0
Successfuly set up fifo
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby
on Rails). The generator creates a scaffold page like the typical rails one,
except adding, editing and deleting are all done inline. The generated
scaffold is valid XHTML strict and fully styled right out of the box.
Check out the demo:
http://ajaxscaffold.height1percent.com/
And the how-to:
2005 Mar 24
5
Using html_options with link_to_remote??
Why doesn''t this output class="delete" into my html?
<%= link_to_remote image_tag("delete"), :update => "relationship_" +
@relationship.id.to_s, :url => { :controller => "relationships", :action
=> "destroy", :id => @relationship.id }, :html_options => {:class =>
"delete"} %>
Regards,
Ben
2006 Jan 18
3
Partial Problems
Hey guys,
I''m having a little trouble working out partials.
I have successfully made a partial work in my list.rhtml, but as I see it on
the 15min introductry video. They guy uses one partial on multipul pages.
At the moment I am trying this in my show.rhtml, I write <%= render :partial
=> "journal" %> and I get this.
NoMethodError in Write#show
>
> Showing
2006 May 19
1
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript in a model (a newbie question)
Hi all,
Please forgive me for this newbie question. But I really want to know how
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript
method in a model.
I can access this method in view, but when call it in the model, it ends up
with undefined method.
It seems to me they are in different scope.
So what''s the best way to access view helper methods in model.
--
2012 Feb 24
2
data frame manipulation with condition
Dear list,
n00b question, but still can't find any easy answer.
Here is a df:
> df<-data.frame(cbind(x=c("AA","BB","CC","AA"),y=1:4))
> df
x y
1 AA 1
2 BB 2
3 CC 3
4 AA 4
I want to modify this df this way :
if df$x=="AA" then df$y=df$y*10
if df$x=="BB" then df$y=df$y*25
and so on with other conditions.
TY for any
2009 Feb 12
4
Easy RoR <-> Javascript syntax question
Hi there,
a simple n00b question:
I have that Javascript snippet on my page (see below; taken from jquery,
actually).
I want to pass it the "@cities" array from the controller. But what''s
the correct syntax, here?
See the 3rd line:
========================================
<script>
$(document).ready(function(){
var data = @cities; <---- that''s
2005 Aug 09
2
Upgrading Drive, Best Practice?
Hi,
This might sound like a n00b question, but I've honestly never done this
with a Linux machine... (it is running Centos3)
We have a 1U mail server with two 36GB SCSI drives in a hardware mirror
config. There's no more room for any other drives in the case. It's
filling up, so we now have two 74GB drives ready to take their place.
Possible solutions that I've come up