Displaying 20 results from an estimated 3000 matches similar to: "Trying to turn params field into a variable"
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote
database machine to get rails up. My machine is running on Fedora 2.
Rails version 1.1.2. Is my yml config correct? I am getting this error
when I execute script/generate scaffold service_contents content :
exists app/controllers/
exists app/helpers/
create app/views/spiel
exists
2006 May 31
2
Checkbox Help
Hi guys,
I am need to help again. Sorry for the newbie query but would definitely
appreciate the help.
Here''s the q: I generate a list of items from the database and render
them out with a checkbox beside them. A user may click more than one
item and I would want to save all checked items into another table. I
have been able to give each checkbox a unique id . Would anyone be able
2006 May 18
3
How to call controller from a div
Hi guys,
it''s me again,
Just wanted to ask, what technique can you use to call a def inside your
controller while clicking on a div?
thanks,
Bing
--
Posted via http://www.ruby-forum.com/.
2006 May 19
2
Checking div generation technique
Hi guys,
just wanted to ask, on the onset of our page, we generate several div''s.
What we noticed on an intermittent connection is that several divs don''t
get to generate all the div''s sometimes so we had to reload our page.
Would you have any technique on how we can do this?
thanks
bing
--
Posted via http://www.ruby-forum.com/.
2006 May 17
9
Render No Layout?
Hi guys,
Am having a problem.
I have this def in my index controller that works like this:
def do_something
$a = variable1
$b = variable2
$c = variable3
$d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'',
''#{$a} - #{$b}''); \n </script>"
$trigger = "1"
render(:partial =>
2006 May 30
11
Another String Manipulation Exercise
Hi guys,
And I thought it wasn''t a problem. Here''s my string
"/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg"
How do i take out all the text that comes before "mypic.jpg"?
Trickier than I first thought.
TIA,
Bing
--
Posted via http://www.ruby-forum.com/.
2007 May 31
2
policy files
Hi,
I think I have two questions - one which is samba and one which is windows
policy files. I'll try to limit this question to the samba side but will
give the full picture for completeness.
I'm trying to implement a simple policy to redirect a few simple folders
(for starters). I have a policy file called NTConfig.POL that is available
on my share \\wilson\netlogon (wilson is the
2006 Jun 08
1
Using hidden fields to pass values
Hi guys,
Another question from a newbie.
I need to update a div on my page which gets updated regularly. So what
I''ve done is to create a hidden field which technically just contains
the user_id. This field doesn''t change. I was planning of pulling that
text field user_id data and putting it into params but it keeps on
giving me a nil value.
Is there a technique I could
2006 Jun 15
1
Periodically Call Remote Condition
Hi guys,
I''ve been reading through the forums and came across a response for
adding :with condition to a periodically call remote.
I tried it out and couldn''t make it work. Would anyone have a sample of
how to use this conditional structure with periodically call remote?
If not, does anyone have any idea how to add a condition to a
periodically call remote?
What I need is to
2006 Jul 19
4
How do I overwrite/extend a scaffold module?
I have many pages to generate quickly. They are based off of the scaffold
generator, but I want to convert the rhtml files to Markaby, and change some
formatting. Without having to do a lot of repetitive hand editing. Is there
a simple way to overwrite/extend part of the scaffold generator? Do I need
to write my own from scratch?
--
Best Regards,
-Larry
"Work, work, work...there is no
2011 Aug 18
2
Problem exporting samba 3.6 registry
I'm triing to put some samba3.6 server like print server, the load of
ntprinters and ntdrivers is ok, but when I try to do a backup of the
registry I find it:
#net rpc registry export
'HKLM\System\CurrentControlSet\Control\Print\Environments\Windows NT
x86\Drivers\Version-3\Canon iR2270/iR2870 PCL6' printers.reg
Violaci?n de segmento (Segmentation Fault)
Export fail but enumerate
2008 Feb 09
1
[LLVMdev] Annotate a value.
Hello.
It would be very useful for my project being able to annotate
Value's. An int would do fine.
I found an old message with this same subject talking about the
Annotation interface and Annotable object, but the doxygen graphs says
that only Function is annotable.
Could I use the ValueName for the job? It would be enough, although
quite clumsy. Seems that Value's of type void
2006 Aug 08
5
RubyGems runtime memory use in Rails apps...
This an open plea for someone with knowledge of RubyGems to explain why
RubyGems stays in memory (over 10MB) after a Rails application is loaded. I
am unable to figure out why this would be necessary. I haven''t had any
response from Jim or Chad from RubyGems about it so I thought I would throw
it open to the list to see if anyone could educate me or share thier
experiences with this.
2005 Jun 15
1
Setting environment variables (installation problem)
Dear All,
Is it possible under WinXP to set the R binary path (...\R\bin)
as an environment variable during installation?
(rw2010.exe)
The problem is that I've written a program that needs to know the path
of Rterm.exe during installation.
At the moment the user can't choose the R installation path
("/DIR={pf}\\R /SILENT").
If I would know where the user install R the
2007 Feb 05
4
rubgems in user directory - HELP!
I''m trying to install ruby on rails to a host server that I don''t have
root access to. The server already has ruby.
I''ve followed the info on these two pages for installing rubygems in a
non-root user directory:
http://rubygems.org/read/chapter/3
http://wiki.rubyonrails.com/rails/pages/HowToUseMultipleGemRepositories
rubygems appears to be installed correctly but when
2004 Sep 30
1
ntconfig.pol not loaded
hi samba community and team !
I' m playing with policies under win2k/samba3/ntconfig.pol/poledit
It worked at first, but now seems my win2k test machine doesn't want to load the
ntconfig.pol located into \\mysmbpdc\netlogon
I've seen some threads about the same prob. but none with a solution.
I know there is a project with an "editreg" tool planned.
But for now I would like
2006 Apr 28
19
Remember James McGovern?
Remember James McGovern and his articles about Rails and enterprise?
Well... Check this one out where he "puts his money where his mouth is"
http://duckdown.blogspot.com/2006/04/ruby-community-proved-mcgovern-wrong.html
--
--------------
Jon Gretar Borgthorsson
http://www.jongretar.net/
2002 Feb 26
0
few idea about dealing with "Large Roaming Profiles"
Well,
I put it here. All the experience gained in about-half-an-year-management
of Samba-PDC + numerous NT4 workstations is included. Also, I'd be glad to
hear from you what did I miss!
1) when NT4-workstations are organised into "domain", there's some
action assosiated to this: "to log into domain".
samba ain such case acts as PDC (primary domain controller),
2005 Feb 15
6
Windows update
Hi!
How do you guys solve windows security updates? Is there a way to force windows
computers to be updated. Even more flexible is if one can update windows through
login script.
Peter Nyberg
Institutionen f?r Biokemi och Biofysik (DBB)
Sv.Arrhenius v?gen 12
106 91 Stockholm
Tel: 08-16 24 69
Mobil: 070 339 24 69
Fax 08 153679
2006 Feb 13
6
How can I access the value of params[:tags] in my validate function?
I would like to have tags mandatory in my app.
The following keeps giving me error that params is nill.
def validate()
if (@params[:tags])
errors.add(@params[:tags], ":tags must be entered ")
end
end
Why cannot I access params in my model class?
The field for tags is called "tags"
How else can I add an error using errors.add?
I