Displaying 20 results from an estimated 300 matches similar to: "Howto set a global parameter"
2006 Apr 25
3
Profiling views
Hi folks !
I''ve been using Rails for about 2 months now, but I''ve some performance
problems. So I was wondering if there''s a way to profile views ?
Thanks !
--
,= ,-_-. =. Lo?c Guitaut
((_/)o o(\_)) http://www.belfalas.org
`-''(. .)`-'' Jabber ID : Flink@im.apinc.org
\_/ GnuPG KeyID : 0xA78CD85D
-------------- next part
2006 Jun 14
3
How to use at_beginning_of_year
I want to get the Date in formation YYYY-MM-DD for the start of the
current year
But I cannot think how to do it...
This generates a name error .rhtml view.
<%= at_beginning_of_year.Time.now %>
--
Posted via http://www.ruby-forum.com/.
2010 May 26
3
Safebuffer with rails 2.3.8
Hi there!
I''ve just migrated from rails 2.3.5 to 2.3.8 and now I have a lot (and I mean
a lot!) of deprecation warnings like this one: "DEPRECATION WARNING:
ActionView::SafeBuffer is deprecated! Use ActiveSupport::SafeBuffer instead."
But I don''t understand how to remove this. I searched through installed
plugins, and there is no reference to SafeBuffer :(
Any
2006 Mar 20
5
:conditions => ["phone like ''%:phone%''" , {:phone => "555"}]
Hi all,
What''s wrong with the way I specify the condition in :
Person.find :all, :conditions => ["phone like ''%:phone%''" , {:phone
=> "555"}]
?
It translates to (note the two '' between the two ")
SELECT * FROM people WHERE (phone like "%''555''%" )
instead of
SELECT * FROM people WHERE
2006 Mar 22
5
foreach item in column
Hi there,
I have a database with phonenumbers, and I want to make a function
that runs a command for each of these numbers, with the number as an
argument
Something like this in Perl:
system("/bin/command $number");
mysql> select * from numbers where list = "one"
+----+----------+----------+---------------------+-----------+
| id | number | name | email
2006 May 09
2
User.new doesn´t capture all of the parameters
Hi,
I have a page where I can add new users to the database, but it only
sees whats in the name and passord field.
add_user.rhtml:
<%= form_tag %>
<%= form_tag :action => ''add_user'' %>
<td>User name:</td>
<td><%= text_field("user", "name") %></td>
</tr>
<tr>
<td>Password:</td>
2006 Mar 29
4
Collecting data from forms
Hi,
I?m having some problems collecting the content of some forms.
This is whats in list.rhtml:
<%= form_tag :action => ''send_message'' %>
From:
<%= text_field ''message'', ''from''%>
<br>Message:
<%= text_area ''message'', ''text'', :rows => 6 %>
<tr>
<td></td>
2006 Mar 06
5
Rails MySQL query
Hi,
I?m following the Depot tutorial in Agile Web Development with Rails.
I need some help to display products thats in one specific category.
mysql> select * from products where category = "jackets" does what I
want, but I?m not sure how to make a list and display it in rails?
This code displays every product with some of its fields, but I want
it to only display the products
2006 Apr 11
5
Reading MySQL rows
Hi there,
I?m having difficulties reading the content of some rows in my database.
Tried to use some of the code at page 221 in the pickaxe, but didn?t
make it work.
The SQL query works fine directly against the database.
mysql> select id, count, company from users where name = "martin";
+----+-------+------------+
| id | count | company |
+----+-------+------------+
| 1 |
2006 Mar 11
2
Problems building mysql gem
Hi,
I?m having problems building and installing the mysql gem on a Fedora
Core 4 (Linux) server.
# gem install mysql
Attempting local installation of ''mysql''
Local gem file not found: mysql*.gem
Attempting remote installation of ''mysql''
Building native extensions. This could take a while...
can''t find header files for ruby.
ERROR: While executing
2006 Apr 24
1
Including an extra variable
Hi,
I?m adding numbers to a database from fields in a form, but I want to
include some information I have in a variable not generated in this
form.
The variable user.company exists in the same class as create(), and I
want to include the value of this variable when I add new numbers to
the database.
The form looks like this:
<p><label
2007 Apr 19
1
Mime Type in Nautilus
Hi All...
Could someone guide me to solve a strange behaviour of Nautilus, when I
want to click on a JPEG file that has a .jpg extension I receive this
message and eod refuses to launch:
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-8<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Cannot open Cactus -'Ot 'N' Sweaty(1972)_back.jpg
The filename "Cactus -'Ot 'N'
2006 Apr 18
1
inserting value got problem
Parameters: {"bestandsliste"=>{"typ"=>"bumffer", "KundanName"=>"parikshit", "Abgeholt"=>"", "LieferLand"=>"", "Kaufmann"=>"birla", "Marge"=>"", "Erzieltervk"=>"", "LieferOrt"=>"",
2007 Aug 24
0
autocompleter_customized with Autocomplete.Local
Hi,
Is it possible to get the same effect as the autocompleter_customized
demo, when using Autcomplete.Local?
E.g I want to display both @contact.name and @contact.email in the
search result, and use a pre fetched array for the autocompleter to
search in.
http://pastie.caboo.se/89614
Any suggestions, links to documentation, tutorials is highly
appreciated!
Cheers,
Martin Stabenfeldt
2007 Nov 02
1
uninitialized constant ActAsAuthenticated
Hi,
I followed the installation guide on http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated,
but db:migrate fails:
$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant ActAsAuthenticated
Tried to move include AuthenticatedSystem to ApplicationController,
2007 May 12
2
HA with CentOS
Hi All,
I have two identical computers with CentOS 5.0 and lampp installed. Are
there any high-availability solution for CentOS? So, when one one computer
offline, another could act as a backup and being transparent to user.
Regards,
Tong
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Apr 25
1
Printing
I have installed CentOS5 on a Dell Laptop, I works properly,
except I can't install the printers. I don't have the System >
Administration > Printers
What am I missing?
--
Thanks
http://www.911networks.com
When the network has to work
2007 Apr 30
2
mirrorlist(for nagios or snort)
hi,
i want to know how i can find a mirror for installing nagios in centos
4. Because when i do yum search nagios or yum install nagios i don't
receive a response.I don't know if somebody can give me a website like
apt-get.org(unofficial apt repositories).
thanks
2007 May 15
5
Make Raid1 2nd disk bootable?
On earlier versions of Centos, I could boot the install CD in rescue
mode, let it find and mount the installed system on the HD even when it
was just one disk of RAID1 partitions (type=FD). When booting from the
centos5 disk the attempt find the system gives a box that says 'You
don't have any Linux partitions'. At the bottom of the screen there is
something that says:
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon,
I''ve two quick questions for the Ruby/Rails community.
1) Do you use Linux for Ruby or Rails development?
2) If you use Linux, which distro do you normally use to develop?
Thank you for your input. :-)
--
Posted via http://www.ruby-forum.com/.