Sample:
Element.toggle('div1'); Element.toggle('div2');
--
Shiv
On Sat, Dec 27, 2008 at 1:29 PM, Gi Ga rails-mailing-l...@andreas-s.netwrote:
Sample?
--
Posted via http://www.ruby-forum.com/.
--
Henny Youngman - If at first you don't succeed... so much for skydiving.
well, answering my own doubt, once one decide to comment:
# map.resources users
and then use named paths ... you will have to differentiate the names
like:
map.user_show ...
map.user_update ...
map.user_delete ...
why? because paths like that and also with simple paths, rails will be
Hi,
Yesterday we started migrating our project to Rails 2.2.2. For one of
the Ajax Request I faced some problem.
When I click an AJAX link, then in the UI I can see my rhtml code
directly like
% __in_erb_template=true %
%= render :partial = manage_availability%
And in the console I got
Hey all
I m facing a problem,. Actually i m caching one action using
caches_action. On that page i also have pagiation. So if i enable
caching the page loads faster but the pagination stops working..it
redirects me to the same first every time i click next. If i stop
caching it starts working
On 27 Dec 2008, at 10:23, Naga harish Kanegolla wrote:
After this my total server is gone.
That time I am getting 500 Internal Server Error.
/!\ FAILSAFE /!\ Sat Dec 27 15:49:47 +0530 2008
Status: 500 Internal Server Error
Invalid new_session option:
The interesting bit are the lines
On 27 Dec 2008, at 03:04, Mike wrote:
General question - when you deploy a new production version, how do
you normally handle the data migration? I'm leery of applying spot
changes directly to the prod DB - I would prefer to have an unchanged
version to roll back to. (Could always backup
Hello,
I solved one of my problems with restful-authentication plugin: the
sent activation_code was different than the one in the db.
I found the solution in the readme:
http://github.com/technoweenie/restful-authentication/tree/master/README.textile
Pay attention, may be this is not an issue
Helper means view helper: they are only included in views. If you want
a method you can call from views or controllers you need to define it
in your controller (if you need all controllers to see it then in
ApplicationController) and use helper_method to make it accessible to
views.
Fred
I need to build an array that contains lots of date objects.
I've got a booking model and it contains stuff like this...
create_table bookings, :force = true do |t|
t.string firstname
t.string lastname
t.integer number_of_people
t.integer deposit
t.integer price
Okay, so how would you allow a controller (or even a model) to use for
instance the helpers truncate or sanitize?
The solution I have found was to use xss_terminate plugin (compatible
with Rails 2.2.2), it also allows to dive into its code and see how it
is coded.
--
Posted via
Does having VMWare as an additional layer create any inefficiencies or
problems ? I think at one time I shyed away from this idea because I
was affraid of blowing away the OS that my laptop came with.I had
brought my laptop to a linux group a few years ago and they couldn't
get linux on my
bingo bob wrote:
I need to collect up all the booking dates in an array so that I can do
stuff with them...
I figure i need a method in my model to do it...
something like
def self.all_booking_dates
find(:all); # first off find all the booking records
@BookedDays = (
Sunny Bogawat wrote:
Joshua Abbott wrote:
Would you mind posting an example of the hash and an example of how you
would like it sorted?
Thanks,
Josh
http://iammrjoshua.com
say i have album id 233 and created date 12/09/2008 so my key should be
12092008_233 in this way?
Instead of
On 27 Dec 2008, at 16:10, wbsurf...@yahoo.com wrote:
Does having VMWare as an additional layer create any inefficiencies or
problems ? I think at one time I shyed away from this idea because I
was affraid of blowing away the OS that my laptop came with.I had
brought my laptop to a linux
Hi,
I am using RailsXls Plugin to generate Excel Reports
I am using Rails 2.1.2 Version
I Have installed Jdk 1.5 Also
I am getting this error when i am trying to start my webrick server
rails/activesupport/lib/active_support/dependencies.rb:493:in
`const_missing': uninitialized constant in
Matt Harrison wrote:
One of my apps is using the calendar date select plugin[1] to let users
select the start and end date for an event.
The app is in beta and so far the users have asked if I can do this:
When the start date is selected, they want the end date to duplicate the
start.
Frederick Cheung wrote:
On Dec 27, 4:18�pm, Jeremy Weiskotten rails-mailing-l...@andreas-
s.net wrote:
hash = {}
key = [date, album_id]
hash[key] = value
However, hashes are not sorted in Ruby 1.8. Rails 2.x has an OrderedHash
that maintains the keys' nsertion order, but it's not
bingo bob wrote:
Thanks, I'll try that.
I got to here myself, but it's not right ! I think it's close though and
I find this syntax easier to read.
def availability
@bookings = Booking.find(:all)
for booking in @bookings do
bookingfirstday = booking.from.to_date
On Sat, Dec 27, 2008 at 8:10 AM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
Does having VMWare as an additional layer create any inefficiencies or
problems ?
No, it's just another app, but one that makes it possible to use one
system to test on all major platforms. I have a MacBook Pro
Thanks that's very clear and helpful, I'll try and use the more concise
method.
It's working for me and I understand why my version wasn't.
Maybe my brain is squished but I've done the hard thing and now this
next more simple loop is causing me problems in my view. I wish to show
12
It's possible things have changed since I played around with linux,
but I have booted I think it was knoppix from my laptop CD.
It was fun to play with at the time, but I think I had to configure or
mount things every time I booted.
Right now my laptop CD drive is no longer working and I have
On Sat, Dec 27, 2008 at 9:10 AM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
At any rate, the unsolved question fro me is if I would want to go
the route of linux on an IBM PC laptop or consider getting a Mac
laptop. The first option would involve me researching what I would
need to do
Hey, that's really interesting. I found dell laptops with ubuntu
starting at $500.
http://www.dell.com/content/topics/segtopic.aspx/linux_3x?c=uscs=19l=ens=dhs
I assume that they could read from my external drive as well ? Can
ITunes run on ubuntu ? Is installation of software involve more
Hi,
I am creating a little blogging engine, so I want the most recent posts
to display first, so I make a search with :order = 'created_at DESC'
For some reason, will_paginate works the opposite way I expect it to be.
I mean the previous / next links are opposite to what I want. What could
I be
On Sat, Dec 27, 2008 at 10:04 AM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
Hey, that's really interesting. I found dell laptops with ubuntu
starting at $500.
http://www.dell.com/content/topics/segtopic.aspx/linux_3x?c=uscs=19l=ens=dhs
I assume that they could read from my external
Still stuck here
any help would be appreciated as to how to handle branched gems with
prefixed names.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
I'm not as serious a web developer as some, and at the moment I have
a job doing back end Ruby stuff mostly, but I have to keep an eye to
the future just in case. I come from a back end programming
background, and have tried to get into front end a bit, though I seem
to prefer back end work and
Sent from my iPhone
On Dec 27, 2008, at 10:04 AM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
Hey, that's really interesting. I found dell laptops with ubuntu
starting at $500.
http://www.dell.com/content/topics/segtopic.aspx/linux_3x?c=uscs=19l=ens=dhs
I assume that they could
Ouch - I simply used Digest::SHA256 instead of Digest::SHA2 and it
works now.
On Dec 27, 8:44 am, Sav savar...@gmail.com wrote:
I'm migrating a working app to a new server, but all my authentication
tests are failing on SHA2. The user.rb model has require 'digest/
sha2' at the top, yet I
I know it was mentioned textmate IDE for rails ...
I wish that you don't purchase a Mac to only use Textmate. You should
have bigger goals for investing in a Mac or at least using it more
than to run Textmate. In short, you should evaluate your goals as
well as your budget constraints
On Sat, Dec 27, 2008 at 11:51 AM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
I saw there are some u-tube videos on dual booting with vmware,
? I'm not sure what you mean: VMWare just runs as an application
under MacOS. You install other operating systems under it. So, for
instance, I'm
Hassan Schroeder wrote:
If I had a 3-year-old laptop with only 500m memory and a bad CD
drive, I'd call it a doorstop and dump it.
Whereas if I had one, I'd do something useful with it :P
My router/firewall is a dual P2-350 with 400mb ram and it's been working
fine with gentoo on it for
How about RaiMer
--~--~-~--~~~---~--~~
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 email to
? I'm not sure what you mean: VMWare just runs as an application
under MacOS. You install other operating systems under it. So, for
instance, I'm using all my Mac apps plus I have a window open with
an OpenSolaris desktop and apps, or Ubuntu, or Windows.
I guess people also use VMWare on
Using Rails relies heavily on googling - so my vote would go for
naming it something pretty unique. I've done a lot of reading about
railway track engineering over the recent years.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Teedub wrote:
I am so excited about the Rails Merb merger! We need a descriptive
name for the event.
Mr. Ails ?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
On Fri, Dec 26, 2008 at 3:15 PM, Clem Rock rails-mailing-l...@andreas-s.net
wrote:
Hello,
I love the concept of using %=yield % to automatically render
content but there are times where I find it a bit restraining.
For instance, I would like to to use the exact same partial for these 2
Rails 3.0 - LIVE, released. http://smallr.com/8tl
On Dec 27, 3:30 am, Conrad Taylor conra...@gmail.com wrote:
On Dec 26, 2008, at 9:48 PM, Ken Wagner rails-mailing-l...@andreas-s.net
wrote:
Maybe Merle?
Merble?
Marble?
Raileries?
Rhuberb?
Rumer?
Rails 3.0
On Sat, Dec 27, 2008 at 1:07 PM, wbsurf...@yahoo.com
wbsurf...@gmail.com wrote:
I guess people also use VMWare on IBM PC's to dual boot linux and
windows ..
1) it's *not* dual boot -- dual boot means you're choosing which OS
to run, and only one at at time; VMWare lets you run multiple
I have just installed MacPorts 1.7.0 for Leopard using a
downloaded .dmg file. Following the download and installation, I
looked for the .profile file to change the environment variables, but
found that no .profile file was created.
When I tried to do so, I got an error message:
Ankit Parekh wrote:
Hey all
I m facing a problem,. Actually i m caching one action using
caches_action. On that page i also have pagiation. So if i enable
caching the page loads faster but the pagination stops working..it
redirects me to the same first every time i click next. If i stop
Short version of the problem:
Why this works
session[:sub_menu].fetch(:stock)
and this don't?
session[:sub_menu].fetch(stock)
thanks
David Sousa
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
On 27 Dec 2008, at 23:15, David Sousa wrote:
Thanks Frederick.
I want to do something like:
% session[:sub_menu].fetch(controller.controller_name) do |sub_menu|
-%
% sub_menu.each do |menu| -%
li
%= link_to #{menu[:presentation_name]}, :controller =
#{menu[:controller]},
On 27 Dec 2008, at 18:38, Fernando Perez wrote:
Hi,
I am creating a little blogging engine, so I want the most recent
posts
to display first, so I make a search with :order = 'created_at DESC'
For some reason, will_paginate works the opposite way I expect it to
be.
I mean the
Hey Frederick thank you very much
How was x-mas? (I hope you are not Jewish or some thing like that!)
Have a happy new year...
tks again.
David Sousa
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
So I'm working on creating a migration for a new version of one of the
projects I'm working on. But Rake seems to be selectively spitting out
errors. The same code that works only a few lines up will not work
where I most need it. (That should be a law of programming...)
So here's what's up.
Clem Rock wrote:
Hello,
I love the concept of using %=yield % to automatically render
content but there are times where I find it a bit restraining.
For instance, I would like to to use the exact same partial for these 2
methods:
list_roles and create
If I try to use render
Jeremy Weiskotten wrote:
Matt Harrison wrote:
One of my apps is using the calendar date select plugin[1] to let users
select the start and end date for an event.
The app is in beta and so far the users have asked if I can do this:
When the start date is selected, they want the end date to
bingo bob wrote:
How do I display twelve of em...I know this is uber easy but I can't get
it to work.
I firgure something like what follows is useful but I cant get the loop
within the loop working in the view.
%
start = Time.now.month
finish = Time.now.month + 12
%
Yeah, that's
Thanks for the reply,
Not being anything close to a JS coder, I had a little play but then
gave up to wait for people's replies. I also posted this on the google
ML for the plugin and a kind soul led me to this:
observe_field the start date, and render the end date from a partial.
this is sophisticated! :)
Mr. Ails ?
--~--~-~--~~~---~--~~
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
Teedub wrote:
Still stuck here
any help would be appreciated as to how to handle branched gems with
prefixed names.
Thanks
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies
Does that help?
--
Posted via http://www.ruby-forum.com/.
Hmm
I sure can't hurt. I will give it a try. I didn't realize that I could
move gems into vendor/gems with unpack. Seems like it defeats the
advantage of gems over plugins... unless they get updated. but I might
get to alias the name.
I will mess with it this evening
Thanks
On Dec 27, 4:52 pm,
Jeremy Weiskotten wrote:
Thanks for the reply,
Not being anything close to a JS coder, I had a little play but then
gave up to wait for people's replies. I also posted this on the google
ML for the plugin and a kind soul led me to this:
observe_field the start date, and render the end date
Matt wrote:
puts ' - Remove developer permissions collection'
@developerRole.permissions.delete_all
puts ' - Set developer parent and list_priority'
@developerRole.update_attributes(:parent_id =
@officerRole.id, :list_priority = 5)
The migration handles that fine.
Matt Harrison wrote:
Jeremy Weiskotten wrote:
Thanks for the reply,
Not being anything close to a JS coder, I had a little play but then
gave up to wait for people's replies. I also posted this on the google
ML for the plugin and a kind soul led me to this:
observe_field the start date,
I study RailSpace code and the line code in the book
@error_messages = ActiveRecord::Errors.default_error_messages
has been deprecated. Instead the following is recommended
@error_messages = I18n.translate('activerecord.errors.messages')
But the line
correct_error_message =
On Sat, Dec 27, 2008 at 7:52 PM, Richard Schneeman
rails-mailing-l...@andreas-s.net wrote:
I've been riding rails since 1.2 and had no problems (that i couldn't
get over) upgrading. Since i've installed rails 2.2.2 (verified via gem
list, and rails -v) and I change my environment.rb to read
Hi, did you update the configuration files by running 'rake
rails:update' in
the root of your rails application? Also,
what version of ruby gems are you using (gem -v)?
-Conrad
not sure if rake rails:update did anything but here's the output of my
bash
166:slangasaurus richard$ rake
On Sat, Dec 27, 2008 at 8:14 PM, Richard Schneeman
rails-mailing-l...@andreas-s.net wrote:
Hi, did you update the configuration files by running 'rake
rails:update' in
the root of your rails application? Also,
what version of ruby gems are you using (gem -v)?
-Conrad
not sure if
Rear Limbs
Lamb Riser
Sir Marble
http://wordsmith.org/anagram/anagram.cgi?anagram=merb+railst=1000
;-)
On Fri, Dec 26, 2008 at 9:48 PM, Ken Wagner
rails-mailing-l...@andreas-s.net wrote:
Maybe Merle?
Merble?
Marble?
Raileries?
Rhuberb?
Rumer?
--
Posted via http://www.ruby-forum.com/.
Did you edit the RAILS_GEM_VERSION in the correct environment.rb?
here is my entire environment.rb file...http://pastie.org/347697
slangasaurus/config/environment.rb
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
i've also tried just editing down to RAILS_GEM_VERSION =
On Sat, Dec 27, 2008 at 8:30 PM, Richard Schneeman
rails-mailing-l...@andreas-s.net wrote:
Did you edit the RAILS_GEM_VERSION in the correct environment.rb?
here is my entire environment.rb file...http://pastie.org/347697
slangasaurus/config/environment.rb
RAILS_GEM_VERSION = '2.2.2'
richard-macbook-pro:slangasaurus richard$ sudo gem install rails
Successfully installed rails-2.2.2
1 gem installed
richard-macbook-pro:slangasaurus richard$ script/server
= Booting Mongrel (use 'script/server webrick' to force WEBrick)
= Rails 2.1.0 application starting on http://0.0.0.0:3000
=
On Sat, Dec 27, 2008 at 8:55 PM, Richard Schneeman
rails-mailing-l...@andreas-s.net wrote:
richard-macbook-pro:slangasaurus richard$ sudo gem install rails
Successfully installed rails-2.2.2
1 gem installed
richard-macbook-pro:slangasaurus richard$ script/server
= Booting Mongrel (use
The Roles table is being changed in this migration, but I alter the
table before I start working with the data. The two code blocks are
adjacent. The @developerRole code is immediately above it, and
@developerRole is created by
@developerRole = Role.find(:first, :conditions = {:name =
WOW, you're fking awesome. I don't know how i missed that. Thanks a
bunch, i knew it was something small. I had my rails version frozen, all
i had to do was delete the folder in under vendor. Thanks abunch!!
--
Posted via http://www.ruby-forum.com/.
Good Morning,
I have a quick Q: I am using the acts_as_follower plugin which comes
with its own 'Follow' model (lib/follow.rb). Now what I wanted to do
is basically take this, copy it from the vendor/plugins/... to app/
models/ and start modifying it from there.
However, as it turns out... none
So thanks to Craig, i got up and running on rails 2.2.2, though now i'm
dealing with a whole new can of worms. I've done a good bit o searching
and haven't found any solid leads. I'm using the simple_captcha plugin
on my site, and all is well until i call that plugin.
In case you are modifying the Roles table (and then updating the new fields)
you might want to reset the column information.
ModelName.reset_column_information
ModelName is your case might be Role.
--
Shiv
On Sun, Dec 28, 2008 at 10:53 AM, Matt matt.foxt...@gmail.com wrote:
The Roles table
It's actually a problem with the postgres gem. I ran into this the
other day at work, if I remember correctly you just need to switch
which gem you hav installed. Unfortunately I don't remember which one
to use and I'm not at the office.
On Dec 27, 11:57 pm, Richard Schneeman
Hi, i need to construct a link as following
a href=\#{CONFIG['URLS']['Xyz']}\#{url}\#{tag_options}#{name ||
url}/a
But here due to escape character #{url} not give actual value it
treated as a string. how to solve this ?
if i do
a href=\#{CONFIG['URLS']['xyz']}\\#{url}\#{tag_options}#{name
72 matches
Mail list logo