Displaying 20 results from an estimated 1000 matches similar to: "RJS: hide element problem"
2006 Jul 28
2
Delete has_many_and_belongs_to_many relation
Hi there,
Just a simple question I guess, but I am unable to find an anwser...
How to delete a hmabtm relation?
Any help will be appreciated :)
Thanks,
Fabrice.
--
Posted via http://www.ruby-forum.com/.
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble
getting the ID passed through to the controller.
I use this in my view to create the field:
<% for frame in @frames %>
...
<%= in_place_editor_field :frame, :price %>
<% end %>
and this produces the following in my output:
<span class="in_place_editor_field"
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items
class Accounts < ActiveRecord::Base
has_many :items, :through => :projects, :source => :items
has_many :late_items, :class_name => ''Item'', :through => :projects,
:conditions => [''due_on < ?'', Time.now], :source => :items
end
class Projects <
2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and
their hashed password in the cookie after a successful authentication.
can any see an obvious security issue with this? I know the method is
vulnerable to cookie theft but am i missing anything?
thanks
alan
2006 Jul 31
7
Problem with routes when I move the app to a different machine
Hi all:
I have an application that runs great on my macbook pro, however, when
I move the app to the production linux box, all routes fail except for
the one I set up as the default:
map.connect '':controller/:action/:id'', :controller => "Employee",
:action => "status"
I made sure the shebang line in dispatch.* was set to be OS
independent
2006 Aug 01
1
Getting nil when you want "" (a blank string)
This has got to be something obvious that I am missing...
I have a remote form that has one value that is passed back to the
server from a text field. The form has a set of parameters passed to the
:url key called search_params. When the field is empty and the form is
submitted, I get
:my_val => ""
as expected when I examine the log. All is well with the world.
I need call that
2006 Jul 28
2
change url based on account name
Hi,
Is this possible
Can I specify a url ie
http://localhost/AccountName/:contorller/:action/:id
Where AccountName is should be a userName, which will lookup a siteId in
the database?
Whats the best way of going about this, is there somthing in the
routes.rb file I can change to get the account name into a variable?
Thanks for your help
jon
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
4
add one month or one year to a date
Hi,
I need to be able to add one month or in some cases on eyear to a Date.
Does anyone know of any easy ways of doing this?
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
6
STRFTIME() why is it not defined
I am trying to take the input from a field in wich the user enters a
date, and formatting it to my time format
if params[:gotcha] != ''''
gotc = params[:date].to_a
gotc.strftime("%m/%d/%y")
end
Yet I get this error:
NoMethodError in AddController#add
undefined method `strftime? for ["00000"]
What''s wrong. I''m positive this method is
2006 Jun 16
4
duplicate entry issue in acts_as_taggable gem
Hi,
I am using the ''acts_as_taggable'' gem and have issues when I try to
''tag'' an entity with a ''tagname'' already defined.
i.e
1) book[1].tag(''science'',''paperback'') --> works fine
2) book[2].tag(''roman'',''physics'',''paperback'') --> creates an
2006 Aug 10
6
Getting started w/ Ruby on Rails
Hi,
I would like to get started with RoR, since it seems to be a terriffic
platform for Webdevelopment. However, I''m unsure what "level" you need
to be on in terms of programming to get started?
Best regards,
Gustav
--
Posted via http://www.ruby-forum.com/.
2015 Sep 21
3
New software based on libvirt
Hello,
I'm introducing to you the decentralized cloud Cherrypop.
Combining libvirt and LizardFS (as of now) it becomes a cloud completely
without masters. Thus, any node is sufficient for the cloud to be up
and therefore no wasted resources and no single point of failure.
It's still pretty crude software but will work with some tinkering. Hope
you try it and like it!
For more
2006 Jun 21
4
Simplest way to demonstrate a RoR app
Hi,
I have built a simple RoR application and would like to show it to some
friends.
I would like to assign a dyndns URI like "myapp.dyndns.org" address to
point to the application.
As the WEBrick/Mongrel servers are running in "localhost (so loopback
connections)" and I couldn''t bind them to the external server name or
couldn''t bind them to my IP
2013 Feb 17
3
Select components of a list
Hi Gustav,
Try this:
lapply(1:length(models),function(i) lapply(models[[i]],function(x) summary(x)$coef[2,]))[[1]] #1st list component
[[1]]
#??? Estimate?? Std. Error????? z value???? Pr(>|z|) # pm10
#5.999185e-04 1.486195e-04 4.036606e+00 5.423004e-05
#[[2]]
#??? Estimate?? Std. Error????? z value???? Pr(>|z|) #ozone
#0.0010117294 0.0003792739 2.6675428048 0.0076408155
#[[3]]
#???
2006 Mar 14
3
Check whether externam URL is valid?
Hey,
I have users entering URLs into my app, is there anyway in which I can
check to see if the URLs actually point to something before saving the
user input? Maybe a kind of ''ping''-action that returns true on success?
(btw: does anyone of a tentative release date for Rails1.1? I''ve been
slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2019 Jan 13
2
Samba 4 users - UID/GID - or how to migrate
Hello,
I try to migrate my old SAMBA Installation to a new Installation. SAMBA
is running. But my Windows users can see the shares but cannot open Files.
My old Installation /etc/samba/smb.con
...
workgroup = DUCK
server string = %h server (Samba, Ubuntu)
interfaces = eth0 192.168.1.200/255.255.255.0 localhost
bind interfaces only = Yes
security =
2005 Nov 24
1
Autocompleting combobox: fact or fiction?
Hey,
I''ve got a script.aculo.us autocompleting textfield that works
wonderfully, but how do I make the value of the selected option submit
with the form...for that matter, do autocompleting textboxes have
''option'' tags, or is what I want to do simply impossible 8[
Thanks,
Gustav
gustav-Y7mMFpLgOV2wB/GGPSRsq0B+6BGkLq7r@public.gmane.org
--
Posted via
2006 Jun 06
6
Linking two tables using a lookup table
Hi,
How do I associate two different tables which have a lookup id (table)
as common.
I tried the has_many :table2, :through => look_up_table in my table1
model.
Any hints?
Thanks, Hari
--
Posted via http://www.ruby-forum.com/.
2006 Jun 05
6
HTML Parsing libraries
Hi,
What is the best way to parse HTML?
Or is there a simple way to convert a table to an array?
I tried beautiful_soup and the built-in htmltools, but have trouble
getting them to run.
Any pointers?
Thanks, Hari
--
Posted via http://www.ruby-forum.com/.
2001 Sep 25
2
problems with msdfs
We did some tests with msdfs on HP/UX with samba version 2.2.1.a and we
found a strange
problem.
We create a msdfs root on a HP/UX system with samba version 2.2.1.a and
create a link
in it to an HP/UX system with samba version 2.0.7.
We mapped the link in the msdfs root on a NT4 system to drive F.
The share contains the source of samba and in explorer we went to :