Hi all,
I'm trying to achieve something a bit unusual - I want to use a
session_id I have to retrieve the session object from the CookieStore.
Obviously, Rails does it somehow but I couldn't figure out how. Can
anyone shed some light?
Thanks ;)
--
Posted via http://www.ruby-forum.com/.
Hi guys,
I've tried both of those options and can't get it to work, I think
it's the way I am trying to retrieve the values in the partial.
In the development.log I have this error: undefined method `title' for
#HashWithIndifferentAccess:0x1f7f930
In my controller I have this:
render :partial
Ok I've got it to work by using this in my partial:
%= @advert[:title] %
Can you tell me why I have to reference like this?
Phil
On Mar 2, 8:22 am, phil7085 p@btopenworld.com wrote:
Hi guys,
I've tried both of those options and can't get it to work, I think
it's the way I am trying
nevermind the above posts
i wasnt paying attention
i created a model Sample
changed code to
class TestApi ActionWebService::API::Base
api_method :get_me, :returns = [Sample]
end
class MarketdataController ApplicationController
...
def poll
Sample.find(:all,:limit =1)
end
Ehud Rosenberg wrote:
Hi all,
I'm trying to achieve something a bit unusual - I want to use a
session_id I have to retrieve the session object from the CookieStore.
Obviously, Rails does it somehow but I couldn't figure out how. Can
anyone shed some light?
Thanks ;)
Just mention
Priya Buvan wrote:
Ehud Rosenberg wrote:
Hi all,
I'm trying to achieve something a bit unusual - I want to use a
session_id I have to retrieve the session object from the CookieStore.
Obviously, Rails does it somehow but I couldn't figure out how. Can
anyone shed some light?
Thanks ;)
update your mysql version and check
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
cool wrote:
Guys,
I have a text field and the name is phone
I used to enter contact number.
In the new form when i enter 10 digit number like 1234567890 it
is displaying 1234567890
I want to display like in US format automatically like (123)
456-7890.
I need to provide
you could simply write your own helper like that:
def format_phone_number(number)
return (#{number[0..2]})#{number[3..5]}-{number[6..-1]}
end
add it to your view_helper and call it whenever you like.
validations are similar. just add your own validation.
Zhenning Guan wrote:
$ rake simple_captcha:setup
rake aborted!
libMagickCore.so.1: cannot open shared object file: No such file or
directory - /usr/lib/ruby/site_ruby/1.8/x86_64-linux/RMagick.so
(See full trace by running task with --trace)
how can I fix it?
This is because it is
just install RMagick / ImageMagick (there should be a gem for this).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
Hello,
I have a hash, represented by @hash. I want to display the keys and
values of @hash in my view.
I realize that if say one of keys was ip_address i could simple add
this to my view: %= @hash['ip_address'] %.
However! @hash changes...Thus I won't always have the same keys. I
need a way to
I wrote a little about this here:
http://skandragon.blogspot.com/2007/10/mongrel-apache-and-rails.html
How to set up Apache for multiple hosts (assuming no SSL) is pretty
easy, and well-documented in many, many places. Search for apache
virtual host configuration or similar. How to do it with
On Mar 2, 8:39 am, phil7085 p@btopenworld.com wrote:
Ok I've got it to work by using this in my partial:
%= @advert[:title] %
Can you tell me why I have to reference like this?
The errors you mentionned imply that @advert isn't actually an
instance of the Advert class.
Fred
Phil
This is a basic Ruby question. You might want to look into buying a
primer on Ruby and learn the basics; it'll help you a lot.
% @hash.each do |key, value| %
%=h #{key.to_s} #{value.to_s} %
% end %
You can iterate through hashes in many various ways, including sorting them:
%
On Mar 2, 2:02 am, Toro torymbr...@gmail.com wrote:
Hello,
I have a hash, represented by @hash. I want to display the keys and
values of @hash in my view.
I realize that if say one of keys was ip_address i could simple add
this to my view: %= @hash['ip_address'] %.
However! @hash
Ok Fred, I think I understand, I've now changed the controller to look
like this:
def preview
@advert = Advert.new(params[:advert])
render :partial = 'advert', :object = @advert
end
Before I had: @advert = params[:advert] which I think is what you
mean by it not being an instance
vendor/rails/activerecord/lib/active_record/locking/pessimistic:
# Pass tt:lock = true/tt to ActiveRecord::Base.find to obtain
an exclusive
# lock on the selected rows:
# # select * from accounts where id=1 for update
# Account.find(1, :lock = true)
#
# Pass tt:lock =
Validation:
validates_presence_of :name
validates_length_of :name, :maximum = 150
validates_inclusion_of :category, :in = %w( X Y XY )
validates_length_of :gender, :maximum = 3
validates_length_of :tag, :within = 1..10
Data sended
data: !map:HashWithIndifferentAccess
name: Bond
# this makes param 2 and 3 optional (if none is passed default values
are set to empty string):
def check_chat_type(f, search_string_1=, search_string_2=)
...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
i really can't answer your questions regarding why this happens, but
for the HOW_TO part i'd suggest to just do it like this:
# controller:
@columns = Source.column_names
# view:
%= @columns %
this respects MVC.
--~--~-~--~~~---~--~~
You received this message
can you set a debugger in your Controller/Model to see what is
actually received?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
Try with following
validates_inclusion_of :category, :in = %w( X, Y, XY )
validates_length_of :gender, :maximum = 3, :allow_nil = true
validates_length_of :tag, :in = 1..10
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this
On Mar 2, 9:24 am, MaD mayer.domi...@gmail.com wrote:
vendor/rails/activerecord/lib/active_record/locking/pessimistic:
# Pass tt:lock = true/tt to ActiveRecord::Base.find to obtain
an exclusive
That's a row lock :-) If you want a table lock you need to run the
appropriate sql statement
Hi all,
I hope someone can point me in the right direction. I am looking for
some sample code to help with writing some code for scheduling
maintenance for machinery. The idea is that, like a car, this
machinery needs maintenance either at certain intervals or after a
certain number of hours of
Mongrel is a nice piece of software, but you should really have a look at
Phusion Passenger. It effectively makes deployment of Rails applications
as simple as deploying PHP code.
http://www.modrails.com/
http://www.modrails.com/documentation/Users%20guide.html#_installing_phusion_passenger
That's a row lock :-) If you want a table lock you need to run the
appropriate sql statement for your database by hand.
Fred
oh, i'm sorry. it seems i'm still a little bit sleepy and didn't read
the question correctly. i thought you were looking for a row lock...
it all depends on your machine. nobody can tell you what's right (or
even the best) for you. you gotta decide for yourself.
to show you some alternatives:
- you could just work with cron-jobs.
- you could use backgrounDRb or workling/starling to schedule your own
processes.
On Mon, Mar 2, 2009 at 10:50 AM, Ian Piper ianpi...@gmail.com wrote:
I am not sure
how best to manage the time measurements (DateTime or Time?) or how to
build the business rules to do the measurements and comparisons
robustly.
I wondered whether anyone here could direct me to an example.
It's on my to-do list. Right between rebuilding my Xen server, making
Asterisk work again, etc. :)
--Michael
On Mon, Mar 2, 2009 at 4:12 AM, Chris Kottom chris.kot...@gmail.com wrote:
Mongrel is a nice piece of software, but you should really have a look at
Phusion Passenger. It
Hi everyone,
I am using acts_as_taggable_on_steroids plugin in my app for
tagging.
When I create a helper method by using tag_list method of
acts_as_taggable.rb
The display order becomes opposite.
But when I use tag_cloud then the display order is right.
Here is my tag_links(post)
Frederick Cheung wrote:
On Mar 2, 9:24�am, MaD mayer.domi...@gmail.com wrote:
vendor/rails/activerecord/lib/active_record/locking/pessimistic:
� � # Pass tt:lock = true/tt to ActiveRecord::Base.find to obtain
an exclusive
That's a row lock :-) If you want a table lock you need to run the
On 2 Mar 2009, at 10:28am, Peter Vandenabeele wrote:
On Mon, Mar 2, 2009 at 10:50 AM, Ian Piper ianpi...@gmail.com wrote:
I am not sure
how best to manage the time measurements (DateTime or Time?) or how
to
build the business rules to do the measurements and comparisons
robustly.
I
gaveeno wrote:
I just manually set the password reset code in the DB. I then tried
to reset the password and it didn't work. What's going on?
Did you check if password_reset_code field present in the DB?
--
Posted via http://www.ruby-forum.com/.
Hello,
I've changed the default date format in my envornment.rb:
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(:default
= '%d/%m/%Y')
Now I can display my database date rows with the .to_s and they appear
as expected: day,month,year.
But the dates in the database are
On 2 Mar 2009, at 10:42, Vetrivel Vetrivel wrote:
Frederick Cheung wrote:
On Mar 2, 9:24�am, MaD mayer.domi...@gmail.com wrote:
vendor/rails/activerecord/lib/active_record/locking/pessimistic:
� � # Pass tt:lock = true/tt to ActiveRecord::Base.find to
obtain
an exclusive
That's a row
Rails List wrote:
This is because it is unable to find the library files. The best thing
to do would be to login as root and issue
ldconfig /usr/lib
alternatively, try exporting the path of libs to current path
it's done when I reinstall my rmagick and i*magick.
--
Posted via
Can anyone set me straight on this?
I often put files in lib which add new modules or monkey patch existing
classes etc. These always need to be explicitly required in my
environment file. That all works, but one of my colleagues believes
that everything in lib should be loaded automatically,
On 2 Mar 2009, at 12:36, Max Williams wrote:
Can anyone set me straight on this?
I often put files in lib which add new modules or monkey patch
existing
classes etc. These always need to be explicitly required in my
environment file. That all works, but one of my colleagues believes
Uploading image via web page. Create the new file but file is zero
length.
Any ideas where I am going wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
probably in row 23 of your code!?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send
i have this in my mdel infomailer.rb
class Infomailer ActionMailer::Base
helper :application
end
but i can't understand why i can't use method defined i
application_helper.rb
in template app/views/infomailer/send_order.html.erb
please help
--
Posted via http://www.ruby-forum.com/.
Hi, do you have any hint on how give to users the possibility to set
an own domain instead of using a subdomain of the app? The best
example i've found is how shopify works, they permit to have the shop
under shopname.myshopify.com or set an own domain like shopname.com. I
don't think they do
Hi,
In my project, all delete links aren't working. They keep acting as
show action.
Here is an example for the announcements controller.
In routes.rb :
map.resources :announcements
In my index view, I have the standard
%= link_to 'Destroy', announcement, :confirm = 'Are you
sure?', :method
On Mar 2, 1:12 pm, fausto fausto.ga...@email.it wrote:
Hi, do you have any hint on how give to users the possibility to set
an own domain instead of using a subdomain of the app? The best
example i've found is how shopify works, they permit to have the shop
under shopname.myshopify.com or
On 02 Mar 2009, at 14:12, fausto wrote:
Hi, do you have any hint on how give to users the possibility to set
an own domain instead of using a subdomain of the app? The best
example i've found is how shopify works, they permit to have the shop
under shopname.myshopify.com or set an own domain
This should help you do that
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/session/cookie_store.rb
Basically cookie consists of two parts. First is session data base 64
encoded and then url encoded, second is SHA1 hash of session data and
secret server side password.
I'm developing a small rails application for my local community centre
to help them record their attendance. The community centre (building)
has several rooms and each room is used on a daily basis for numerous
activities. I have the following setup:
#building.rb
class Building
Hi all,
I hope someone can inform me on this. I was shocked to find that since
upgrading to Rails 2.2.2 my Rails projects using MySQL have broken.
I have read some webpages that talk about checking whether you have
libmysqlclient installed (without saying how one might check that!)
and
Hi,
I am a newbie to ruby and want to execute a ruby file that is provided
as input. I want to be able to redirect the output of the execution to a
log file as well.
I am basically looking at executing a test.rb file which could contain
(Sample only)
print hello world
sum=2+3
print sum
I
Frederick Cheung wrote:
On 2 Mar 2009, at 12:36, Max Williams wrote:
Is something going wrong for me? Or are lib files not meant to be
loaded automatically?
As far as I know they are not loaded automatically in the sense that
rails won't just load them without any intervention from
On Mon, Mar 2, 2009 at 6:14 AM, Sudhi Kulkarni
rails-mailing-l...@andreas-s.net wrote:
Hi,
I am a newbie to ruby and want to execute a ruby file that is provided
as input. I want to be able to redirect the output of the execution to a
log file as well.
I am basically looking at executing
Ian Piper wrote:
Hi all,
I hope someone can inform me on this. I was shocked to find that since
upgrading to Rails 2.2.2 my Rails projects using MySQL have broken.
Can you define broken? Are you getting errors? If so what are they?
What version of mysql do you have installed? I'm guessing
How can I set a default value: M ?
How can I order optios?
%= select( user, sex, { t(male) = M, t(female) = F },
{:include_blank = true} ) %
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On Mon, Mar 2, 2009 at 6:37 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Ian Piper wrote:
Hi all,
I hope someone can inform me on this. I was shocked to find that since
upgrading to Rails 2.2.2 my Rails projects using MySQL have broken.
Can you define broken? Are you
When you say it's provided as input, where does this input come from?
Users? If so, well... I really hope you know what you're doing.
--Michael
On Mon, Mar 2, 2009 at 8:14 AM, Sudhi Kulkarni
rails-mailing-l...@andreas-s.net wrote:
Hi,
I am a newbie to ruby and want to execute a ruby file
On Mar 2, 2:25 pm, Max Williams rails-mailing-l...@andreas-s.net
wrote:
Frederick Cheung wrote:
ah, ok. i think that explains my confusion - i'd seen some stuff work
without being required. We're using 2.2.2 though and it's not grabbing
everything from lib.
I should add that that thing
Frederick Cheung wrote:
On 2 Mar 2009, at 10:42, Vetrivel Vetrivel wrote:
Fred
Please give me some examples to accomplish the table level lock.
That depends on your database. ActiveRecord::Base.connection.execute
allows you to execute arbitrary sql statements.
Fred
I have a two
Phusion Passenger is the easiest (and increasingly better) way:
http://blog.phusion.nl/2009/03/01/phusion-passenger-211-beta-released-thanks-sponsors/
Cheers, Sazima
On Mar 2, 4:26 am, --- z...@m --- krishnaprasadva...@gmail.com wrote:
how can manage multiple rails applications with apache
On 2 Mar 2009, at 2:37pm, Robert Walker wrote:
Ian Piper wrote:
Hi all,
I hope someone can inform me on this. I was shocked to find that
since
upgrading to Rails 2.2.2 my Rails projects using MySQL have broken.
Can you define broken? Are you getting errors? If so what are they?
What
On Mon, Mar 2, 2009 at 7:12 AM, Ian Piper ianpi...@gmail.com wrote:
On 2 Mar 2009, at 2:37pm, Robert Walker wrote:
Ian Piper wrote:
Hi all,
I hope someone can inform me on this. I was shocked to find that
since
upgrading to Rails 2.2.2 my Rails projects using MySQL have broken.
On 2 Mar 2009, at 3:21pm, Conrad Taylor wrote:
So, where did you install MySQL and what version of it did you
install?
-Conrad
/usr/local/mysql - that was the location that the installer chose. I
am currently running MySQL version 5.0.45 on an Intel iMac with Mac OS
X 10.5.6. And I
On Mon, Mar 2, 2009 at 5:20 AM, jlf jlfen...@gmail.com wrote:
Hi,
In my project, all delete links aren't working. They keep acting as
show action.
Here is an example for the announcements controller.
In routes.rb :
map.resources :announcements
In my index view, I have the standard
Hi,
just a quick question, is there a way how to run two apps on the same
domain?
Both for testing purposes. Thank you.
P.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Mon, Mar 2, 2009 at 7:35 AM, Ian Piper ianpi...@gmail.com wrote:
On 2 Mar 2009, at 3:21pm, Conrad Taylor wrote:
So, where did you install MySQL and what version of it did you
install?
-Conrad
/usr/local/mysql - that was the location that the installer chose. I
am currently
http://pastie.org/404716
Only produces hello, not world.
Which is as designed, but how do I make it do what I want - namely,
set a variable in a class method, and have that variable available in
a view helper?
--~--~-~--~~~---~--~~
You received this message
On Mar 2, 3:25 pm, jbc jcatt...@gmail.com wrote:
http://pastie.org/404716
Only produces hello, not world.
Which is as designed, but how do I make it do what I want - namely,
set a variable in a class method, and have that variable available in
a view helper?
Only instance variables of
Petan Cert wrote:
just a quick question, is there a way how to run two apps on the same
domain?
Both for testing purposes. Thank you.
Yes but you most likely want a subdomain:
http://www.zeroplayer.com/
http://zeekland.zeroplayer.com/
My servers give me a different Apache
Ian Piper wrote:
Then when I run sudo gem install mysql I see this:
On Mac OS X you can't just simply run sudo gem install mysql. You must
use the instructions that are specific to Mac OS X.
This really has to do with the nature of Mac OS X Leopard and is
somewhat unrelated to Rails or
On Mon, Mar 2, 2009 at 7:52 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Ian Piper wrote:
Then when I run sudo gem install mysql I see this:
On Mac OS X you can't just simply run sudo gem install mysql. You must
use the instructions that are specific to Mac OS X.
This
On 2 Mar 2009, at 3:44pm, Conrad Taylor wrote:
On Mon, Mar 2, 2009 at 7:35 AM, Ian Piper ianpi...@gmail.com wrote:
On 2 Mar 2009, at 3:21pm, Conrad Taylor wrote:
So, where did you install MySQL and what version of it did you
install?
-Conrad
/usr/local/mysql - that was the location
MaD wrote:
can you set a debugger in your Controller/Model to see what is
actually received?
How can I se a debbuger?
validates_inclusion_of :category, :in = %w( X, Y, XY )
validates_length_of :gender, :maximum = 3, :allow_nil = true
validates_length_of :tag, :in = 1..10
gender works now,
Conrad Taylor wrote:
Hi, I have both Intel and G5 Macs and I was able to simply install MySQL
without
requiring any architecture flags.
I didn't say it was required to install MySQL. It is, however, necessary
for installing the mysql gem using RubyGems on Mac OS X Leopard.
Note: It's not
On Mon, Mar 2, 2009 at 8:08 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Conrad Taylor wrote:
Hi, I have both Intel and G5 Macs and I was able to simply install MySQL
without
requiring any architecture flags.
I didn't say it was required to install MySQL. It is, however,
Robert Walker wrote:
Conrad Taylor wrote:
Hi, I have both Intel and G5 Macs and I was able to simply install MySQL
without
requiring any architecture flags.
I didn't say it was required to install MySQL. It is, however, necessary
for installing the mysql gem using RubyGems on Mac OS X
Hello,
I have an action on my controller named download which creates a tar
file and then sends the file (via send_file) to the user. Its working
but I will like to delete the file once it is sent. The tar file
should be temporary and only available for download and then deleted
from the server.
Hi everybody,
I'm pretty new in rails so I've been playing programming simple app
one of the was an app with a login and session management. Up to here,
everything is pretty smooth, as rails; but I have a question that I
can solve, that's why I'm writing to the group. Is there a way to
catch the
Do you have javascript enabled in the browser you're testing the
delete action with?
%= link_to 'Destroy', announcement, :method = :delete % produces an
anchor tag to the show action but with a bunch of javascript code to
emulate the DELETE http method.
On Mon, Mar 2, 2009 at 12:35 PM, Conrad
On Mon, Mar 2, 2009 at 8:22 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Robert Walker wrote:
# On Mac OS X Leopard:
# sudo env ARCHFLAGS=-arch i386 gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
# This sets the ARCHFLAGS environment
On Mar 2, 4:04 pm, Hiro hiromoto.hiro...@gmail.com wrote:
Hi everybody,
I'm pretty new in rails so I've been playing programming simple app
one of the was an app with a login and session management. Up to here,
everything is pretty smooth, as rails; but I have a question that I
can solve,
On Mon, Mar 2, 2009 at 8:31 AM, Conrad Taylor conra...@gmail.com wrote:
On Mon, Mar 2, 2009 at 8:22 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Robert Walker wrote:
# On Mac OS X Leopard:
# sudo env ARCHFLAGS=-arch i386 gem install mysql --
+1 for Passenger. I'm currently running some Rails apps and a Sinatra
app as well on the same box. Very easy, very simple, very cool.
On Mar 2, 9:10 am, Sazima rsaz...@gmail.com wrote:
Phusion Passenger is the easiest (and increasingly better) way:
Michael Graff wrote:
When you say it's provided as input, where does this input come from?
Users? If so, well... I really hope you know what you're doing.
--Michael
On Mon, Mar 2, 2009 at 8:14 AM, Sudhi Kulkarni
rails-mailing-l...@andreas-s.net wrote:
print hello world
Thanks,
Are you wanting something like this:
app1.mydomain.com
app2.mydomain.com
or
mydomain.com/app1
mydomain.com/app2
Which one?
On Mar 2, 9:31 am, Petan Cert rails-mailing-l...@andreas-s.net
wrote:
Hi,
just a quick question, is there a way how to run two apps on the same
domain?
Both for
Already ordered my copy and am thinking about submitting an article
for the next one.
On Mar 1, 10:13 am, Olimpiu Metiu olimpiu.me...@gmail.com wrote:
I am happy to announce the very first issue of Rails Magazine!
This edition has 36 pages full of quality content, is printed in
glossy
app1.mydomain.com
app2.mydomain.com
or
mydomain.com/app1
mydomain.com/app2
Which one?
I've just contacted my ISP and my hosting doesn't support running
multiple applications :( Thanks for your replay.
I cant deploy more than one app. :(
P.
--
Posted via
I would honestly think about just getting an inexpensive VPS solution
from someone like Slicehost. You'll learn a ton more about how Rails
works and the fun of deployment and configuration that way.
Plus, it is fun to do sysadmin stuff. :)
On Mar 2, 10:49 am, Petan Cert
Hi,
On Mon, Mar 2, 2009 at 6:10 PM, vimal cool.vimalsm...@gmail.com wrote:
Hi,
I installed backgroundrb.
I have done everything documented (in http://backgroundrb.rubyforge.org/)
but,
i am still unable to figure out,
the kind of error i get while trying to start the backgroundrb server
On Mon, Mar 2, 2009 at 8:49 AM, Petan Cert rails-mailing-l...@andreas-s.net
wrote:
app1.mydomain.com
app2.mydomain.com
or
mydomain.com/app1
mydomain.com/app2
Which one?
I've just contacted my ISP and my hosting doesn't support running
multiple applications :( Thanks for
Is there a better way to show admin link than this? I want to
implement page caching but can't due to it not having conditions.
Fragment caching seems wrong for my site since every page should be
cached except I have this toolbar div shown in the layout if the user
is logged in.
% if logged_in?
I'm pretty new in rails so I've been playing programming simple app
one of the was an app with a login and session management. Up to here,
everything is pretty smooth, as rails; but I have a question that I
can solve, that's why I'm writing to the group. Is there a way to
catch the
On 2 Mar 2009, at 4:22pm, Robert Walker wrote:
Robert Walker wrote:
# On Mac OS X Leopard:
# sudo env ARCHFLAGS=-arch i386 gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
# This sets the ARCHFLAGS environment variable to your native
architecture
I just
Ian - if I'm not mistaken, kwatch-mysql-ruby provides mysql-2.8.1
which is the correct version for Ruby-1.9.+. You only said your
upgrade was to Rails 2.2 and your gems messages indicate /System/
Library/.../gems/1.8/gems so I'm guessing you are still running Ruby
1.8.[67].
Try the install that
The only issue I have with Passenger is the same one I have for any
apache-module based application: Break into one, and you break into
them all.
That is, they all run as user www group www (on my box, those can
vary.) Therefore if applications cross administrative boundaries,
they must run on
On Mon, Mar 2, 2009 at 8:40 AM, Sudhi Kulkarni
rails-mailing-l...@andreas-s.net wrote:
Michael Graff wrote:
When you say it's provided as input, where does this input come from?
Users? If so, well... I really hope you know what you're doing.
--Michael
On Mon, Mar 2, 2009 at
yaphi wrote:
Is there a better way to show admin link than this? I want to
implement page caching but can't due to it not having conditions.
Fragment caching seems wrong for my site since every page should be
cached except I have this toolbar div shown in the layout if the user
is logged in.
Hi:
Try this link. We recently deployed a calendar for our in-house
intranet where users can sign up for classes(events). This will give
you the calendar and event side of things...
http://rubyforge.org/projects/railendar/
Gary.
On Feb 28, 10:33 pm, Unnikrishnan Kp rails-mailing-l...@andreas-
What file I must to edit?
7.1. Changing the way form fields with errors are displayed
http://guides.rubyonrails.org/activerecord_validations_callbacks.html
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if instance.error_message.kind_of?(Array)
%(#{html_tag}span
You don't need to edit any files, create a file with this code and
place it under you app initilizers folder.
-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)
On Mon, Mar 2, 2009 at 3:25 PM, Fresh Mix
rails-mailing-l...@andreas-s.net wrote:
What
What am I missing here?
This doesn't work:
-*- mode: compilation; default-directory: ~/journeys/ -*-
Compilation started at Mon Mar 2 08:13:15
script/plugin install git://github.com/rubyist/aasm.git
Plugin not found: [git://github.com/rubyist/aasm.git]
Compilation exited abnormally with code
1 - 100 of 189 matches
Mail list logo