I think onChange was the better implementation.. You might even want
to put in a delay to wait for them to stop typing for a second or two.
On Dec 1, 2:44 pm, chris.reis...@gmail.com chris.reis...@gmail.com
wrote:
1) Depends what you have the observer do... Sounds like you are
hitting your
Hoang, I would highly recommend filing a ticket against the plugin and I
feel that it would be the best course of action. Thus, you can file a
ticket at the following:
http://github.com/aaronchi/jrails/issues
Also, have you tried installing the Ruby gem? If not, I would give that a
shot by
Hi
I use a rails plugin that transforms ansel to utf8 by an addition to
iconv.
I am now looking for a solution to the other part of the problem, to
convert utf8 to ansel
I have not found any railsplugin that solves that problem, but there
are some Perl and C++ solutions.
My question is now if one
Darian Shimy wrote:
Not sure what is the issue is, I am running 2.3.4 and it works fine.
I do have he map.root as the first entry although I don't think that
will matter.
Thanks for the reply Darian, I also have map.root as the first
(uncommented) entry.
Can you send your routes.rb file?
Are you sure you restarted your server after introducing the map.root
mapping ?
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 2, 2009 at 2:13 PM, Matt Harrison
iwasinnamuk...@genestate.comwrote:
Darian Shimy wrote:
Not sure what is the issue is, I am running 2.3.4 and it works fine.
I do
Also you try
*rake routes *
to see all your routes.
On Wed, Dec 2, 2009 at 12:46 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote:
Are you sure you restarted your server after introducing the map.root
mapping ?
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 2, 2009 at 2:13 PM, Matt Harrison
I have a date entry page with a text field that allow mulitple lines.
When data is entered and displayed back, it is all displayed in one
line. Could someone tell me what is wrong?
Thanks,
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
Satyajit Malugu wrote:
Also you try
*rake routes *
to see all your routes.
root appears as the first route in the list, and it looks properly formed:
http://pastie.org/723163
On Wed, Dec 2, 2009 at 12:46 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote:
Are you sure you restarted your server
I am struggling with the following architectural problem:
My app right now has 2 singular resources: user and user_session
(authlogic-based), with appropriate controllers. I have a landing page
that has on it both the Sign in form and the Create new user/Sign
up form. Both forms point to the
On Dec 2, 7:00 am, Andy jianandy...@gmail.com wrote:
I have a date entry page with a text field that allow mulitple lines.
When data is entered and displayed back, it is all displayed in one
line. Could someone tell me what is wrong?
How are you displaying the text ? If you're just
Hi all, I am a newbie and just recently started to create apps with ruby on
rails so please go easy on me :)
I have an app which has a database in mysql which is called bus_times and
consists of 3 columns which are: id, time and weekday. Time is set to time
and weekday is a string. So it looks
I can give you an example, you would have to improvise on the same according
to your needs.
@bus_times = BusTime.find(:all, :conditions = ['weekday =
?', Date::DAYNAMES[Date.today.wday]])
The above would give you all the bus_time records where weekday equals
todays day...
Hope it helps.
Thanks
Hi Dhruva,
I tried this and get: No method error You have a nil object when you didn't
expect it!
The error occurred while evaluating nil.weekday
I would also like to point out that in my def show I have the following:
@bus_time = BusTime.find(:first, :order = weekday, :conditions = [time
?,
The error implies that the find returned no records and you were trying to
access it in the view to display it perhaps ?
Try the following :
@bus_time = BusTime.find(:first, :order = weekday, :conditions =
[time ? AND weekday = ?, Time.now, Date::DAYNAMES[Date.today.wday]])
If it still gives
hello, Colin,
thanks as your suggestion to simply put RAILS_GEM_VERSION = '2.3.4'
is working,
yes, i have executed rake rails:update in my rails project dir with
sudo prior to posting the message.
thank you
--
You received this message because you are subscribed to the Google Groups Ruby
on
May be: gem update system?
2009/12/1 Brian brifo...@gmail.com:
I'm trying to upgrade to the latest version of rails. I've been
happily using InstantRails2-0 for awhile and it's been great.
However, I've hit problems trying to upgrade. I get the error in the
subject when I do 'gem install
Problem solved thank you for your help I appreciated instead of all i called
:first it was listing an array thats all thanks
Dhruva Sagar wrote:
The error implies that the find returned no records and you were trying to
access it in the view to display it perhaps ?
Try the following :
i think use named_scope is not elegant way. use class method? no idea.you
can give me your sample proj.i can test this way.
2009/12/2 Jeff Blasius jeff.blas...@gmail.com
How would I write a named_scope that checks if the parent has at least
one associated child?
For example,
class Post
i got it.
reference this url:
http://refactormycode.com/codes/209-rails-has_many-count
sample code:
class User
has_many :messages do
def by_type(type, options={})
options[:count_only] ||= false
messages = find(:all, :conditions = [ 'type = ?', type ])
options[:count_only]
2009/12/2 ct9a anexi...@gmail.com:
hello, Colin,
thanks as your suggestion to simply put RAILS_GEM_VERSION = '2.3.4'
is working,
yes, i have executed rake rails:update in my rails project dir with
sudo prior to posting the message.
thank you
You should not need to use sudo for rake
Sorry to post this here but the activemerchant google group is not
available. I am trying to use the
ActiveMerchant::Billing::PayflowUkGateway to set up recurring billing.
I've successfully made a test purchase through this gateway, but when
I try to create a recurring profile I get the following
Can you post the error message and any info that appears in the log?
On Dec 2, 3:53 am, Matt Harrison iwasinnamuk...@genestate.com wrote:
Satyajit Malugu wrote:
Also you try
*rake routes *
to see all your routes.
root appears as the first route in the list, and it looks properly formed:
On Dec 1, 3:38 pm, Srdan Dukic srdan.du...@gmail.com wrote:
Hi,
I'm fairly new to rails development and am using Ubuntu 9.04 as my
distribution. I'm trying to get the 'authlogic_example' sample app working,
however I run into this problem when I try to install the gems neccessary.
$ sudo
On Nov 30, 11:09 pm, hnghiem hoangnghiem1...@gmail.com wrote:
I'm always get the message Plugin not found: [git://github.com/
aaronchi/jrails.git] when trying to install a rails plugin, even for
SVN or GIT. After google search, some people suggest that replace
git:// with http://; and add /
Hi Guys,
I can start my server in development mode.
However, when I run rake test. I have the following errors:
config/environment.rb:4: uninitialized constant Rails (NameError)
from ./test/unit/../test_helper.rb:2:in `require'
from ./test/unit/../test_helper.rb:2
from
Yup,
I've changed the password and username.
That setting is from a tutorial on setting up Gmail and SMTP in rails.
Btw, I am using Ubuntu.
Thanks,
Arthur
On 12月1日, 上午12時32分, Changpeng Zhao cpz...@gmail.com wrote:
I just got this working without any problems, using XP and instant rails.
Try this:
config.action_mailer.smtp_settings = {
:enable_starttls_auto = true,
:address = smtp.gmail.com,
:port = 587,
:authentication = :plain,
:user_name = nore...@gmail_or_your_google_domain.com,
:password = chucknorris
}
2009/12/2 Arthur Ccube arthurcc...@gmail.com
Yup,
I've
Try this as code:
module PostersHelper
def already_voted_arts
Vote.exists?['user_id = ? AND category = ?', current_user.id , Arts]
end
end
On Wed, Dec 2, 2009 at 4:45 PM, DanC d.m.coleg...@durham.ac.uk wrote:
Hi all,
I am trying to get my head around using view helpers.
My app has a
can you show the rjs code you use, and perhaps some more of the surrounding
html.
TIA
On Tue, Dec 1, 2009 at 5:59 PM, Chris Habgood chabg...@gmail.com wrote:
top posting?
On Tue, Dec 1, 2009 at 10:57 AM, Colin Law clan...@googlemail.com wrote:
2009/12/1 Chris Habgood chabg...@gmail.com:
On Mon, Nov 30, 2009 at 8:33 PM, sameera sameera...@gmail.com wrote:
Hi All,
and when I get the source code of the www.site2.com (which redirects
to site1) it has this,
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
html
head
titlesameera gayan
RJS:
page[:name_customer...@company.c_id}].replace_html @cus
Most of the page :
%= f.label 'me' %
%= f.text_field_with_auto_complete :name, {:child_index = @company.id},
:with = 'cus[id]=' + #...@company.id} + 'mopid=' + #...@mop.id} +
'site[name]=' + element.value,
:after_update_element =
Hi,
I'm divin' into BDD with RSpec, Cucumber Friends and wanted to know
whether I got it right. When I go for BDD I skip unit tests? Is that right
or am I wrong?
Thanx.
Cheers,
Chris
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Hi All
I am using radiant cms with spanner's multi_site and scoped_admin
extensions
and everything going right.
Is there existing extension for cloning site.
i.e. I should able to copy one site to another site as it is with all its
pages layouts.
--
Sandip
---
No, you should complement BDD with unit tests of some sort.
On Dec 2, 9:52 am, Christoph Jasinski
christoph.jasin...@googlemail.com wrote:
Hi,
I'm divin' into BDD with RSpec, Cucumber Friends and wanted to know
whether I got it right. When I go for BDD I skip unit tests? Is that right
or am
Mmm. I still get
wrong number of arguments (0 for 1)
Extracted source (around line #8):
5: pDue to the large number of entries we received voting has been
extended until 31 January 2010. Thank you to all of our %=link_to
sponsors, poster_sponsors_path% for supporting our competition./p
6:
7:
Unit tests at the model level are very helpful and important IMO.
I tend to have very light unit tests on my views and fairly light on
my controllers since since the bulk of the code is in models (and
Cucumber tests the view/controller pretty well.)
On Dec 2, 10:54 am, sax
I guess @cus is a customer name then try this rjs code:
page[:name_customer...@company.c_id}].value = @cus
On Wed, Dec 2, 2009 at 6:33 PM, Chris Habgood chabg...@gmail.com wrote:
RJS:
page[:name_customer...@company.c_id}].replace_html @cus
Most of the page :
%= f.label 'me' %
%=
Thanks for the replies.
I fired that question cause I bought a bunch of BDDCasts from (bddcasts.com)
and the first thing they did when bootstrapping the application, was to
delete the test folder. So that and the first chapter of the book (mentioned
above) got me thinking that bdd replaces unit
2009/12/3 Matt Jones al2o...@gmail.com
On Dec 1, 3:38 pm, Srdan Dukic srdan.du...@gmail.com wrote:
Hi,
I'm fairly new to rails development and am using Ubuntu 9.04 as my
distribution. I'm trying to get the 'authlogic_example' sample app
working,
however I run into this problem when
Random thought, but if they're using RSpec for unit testing then the
test folder would be redundant (everything would go into spec/).
On Dec 2, 11:58 am, Christoph Jasinski
christoph.jasin...@googlemail.com wrote:
Thanks for the replies.
I fired that question cause I bought a bunch of
On Wed, Dec 2, 2009 at 10:54 AM, sax s...@livinginthepast.org wrote:
No, you should complement BDD with unit tests of some sort.
Why? What does a unit test do that an RSpec test of your models
doesn't?
--
Hassan Schroeder hassan.schroe...@gmail.com
twitter: @hassan
--
Hi There,
I'm looking to improve my search results by allowing a thumbnail of
returned users to be displayed,
I currently have a table that shows:
th thumbnail here /th thLast Name thGender/th thLocation/
th thPreference/th
what i'd like is to be able to add the user's thumbnail to it.
So
2009/12/2 RubyonRails_newbie craigwest...@googlemail.com:
Hi There,
I'm looking to improve my search results by allowing a thumbnail of
returned users to be displayed,
I currently have a table that shows:
th thumbnail here /th thLast Name thGender/th thLocation/
th thPreference/th
what
On Wed, Dec 2, 2009 at 7:04 PM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
Hi There,
I'm looking to improve my search results by allowing a thumbnail of
returned users to be displayed,
I currently have a table that shows:
th thumbnail here /th thLast Name thGender/th
About this topic from the author of the book -
http://blog.davidchelimsky.net/2009/02/02/rspec-works-with-test-unit/*
*Thanks to Shannon on vark.com for pointing me towards this.
On Wed, Dec 2, 2009 at 1:53 PM, Hassan Schroeder hassan.schroe...@gmail.com
wrote:
On Wed, Dec 2, 2009 at 10:54
The primary difference between -- say -- rSpec and Test::Unit is syntactical.
However, the specification of how something should behave puts you in a
different frame of mind than testing that something *did* behave that way.
Consider this:
it should have 10 records do
MyModel.create(:amount
On Dec 2, 2009, at 6:20 PM, s.ross wrote:
The primary difference between -- say -- rSpec and Test::Unit is
syntactical. However, the specification of how something should
behave puts you in a different frame of mind than testing that
something *did* behave that way. Consider this:
it
Hi,
I'm stuck trying to work this one out - have been reviewing the
AuthLogic code base but having a hard time making sense of it (
http://github.com/binarylogic/authlogic ).
Question 1 - Can anyone confirm what config exactly is required to
make the one time password (persistence_token) work in
Greetings:
I have a rails app with a dashboard page. I'm running under Apache/
Passenger. The dashboard page has several queries run via a dashboard
() action on a controller. The queries can take 30-60 seconds to
complete before the dashboard page is rendered. I'm using cache_page()
in the
Ruby on Rails Programmer - Junior
Our client, based in Austin, TX, is looking for a Ruby on Rails
Programmer to join their dynamic team of experienced programmers. As a
Ruby on Rails Programmer, you will perform a critical role in
designing and building code for our top-secret, cutting edge suite
named_scope :active_between, lambda { |start, fin| {:joins =
[:contacts, :favourites], :conditions = [? contacts.created_at and
contacts.created_at? or ?favourites.created_at and
favourites.created_at?,start, fin, start, fin],:select = DISTINCT
users.*}}
Ok so this is a pretty ugly long query,
Satyajit Malugu wrote:
Hassan Schroeder wrote:
sax wrote:
No, you should complement BDD with unit tests of some sort.
Why? What does a unit test do that an RSpec test of your models
doesn't?
About this topic from the author of the book -
Hey everyone!
I've started a little startup selling vinyl stickers that are designed
to go on Apple laptops and other flat surfaces, like car windows.
We are very thankful to DHH for giving us permission to produce a Ruby
on Rails sticker. I figured you guys may find these interesting. Check
it
On Dec 2, 2009, at 3:29 PM, Rob Biedenharn wrote:
On Dec 2, 2009, at 6:20 PM, s.ross wrote:
The primary difference between -- say -- rSpec and Test::Unit is
syntactical. However, the specification of how something should behave
puts you in a different frame of mind than testing that
Conrad, this issue appear for all the plugins not only for jrails! I can
install the gem without any problems but the plugin.
Matt, here is my environment in windows:
About your application's environment
Ruby version 1.9.1 (i386-mingw32)
RubyGems version 1.3.5
Rack version
Also, here is the RUBY_PLATFORM value : i386-mingw32. I used the installer
package from http://rubyinstaller.org/download.html to install the ruby
1.9.1. I notice that the old ruby 1.8.7 I used refer to i386-mswin32 and the
'mingw32' look like does not detect that I'm on the Windows platform.
Thanks that worked, got my head up my butt again, DOH.
On Wed, Dec 2, 2009 at 1:48 PM, C+++ christiaan.vandenp...@gmail.comwrote:
I guess @cus is a customer name then try this rjs code:
page[:name_customer...@company.c_id}].value = @cus
On Wed, Dec 2, 2009 at 6:33 PM, Chris Habgood
hello,
I want to run cap deploy command but i am gettion following error..
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: svn info http://svn.ecomm.pragtech.co.in/ecomm
-rHEAD
* executing svn checkout -q
Might need to see your deploy.rb file, but I would look where you
define the servers. It appears it is looking for the the host
'application' and cannot find it.
Darian Shimy
--
http://www.darianshimy.com
http://twitter.com/dshimy
On Wed, Dec 2, 2009 at 10:37 PM, madhuri godade
My deploy.rb file contains..
set :application, application name
set :repository, http://...;
set :applicationdir, /root/#{application} # The standard Dreamhost
setup
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual
Depends on how many queries they are and how long they take
individually. If it's one query that takes 30 seconds, then look at
breaking it up or optimizing it. If it's several queries that take a
few seconds each, look into caching their results with
Rails.cache.fetch. Then if a request hits
The persistence token is stored in the session. It is what authlogic
uses to keep track of whether you are logged in. If you have authlogic
working, log your session data and you should see a user_credentials
entry there.
I think what you are looking for is the perishable_token. Here is a
good
Hi,
How to make a socket to listen a port and make it multi-thread (one thread
per client connection) with JRUBY ?
Anyone have examples or can give me a code?
--
Atenciosamente,
Paulo Coutinho.
Blog: www.prsolucoes.com/blog
Site: www.prsolucoes.com
Msn: pa...@prsolucoes.com
--
You received
One form is to create a new user, the other is to create a new user
session. The two forms should post to their respective create actions.
In the error case, you could still instantiate a blank user session
and a blank user so that when you render :template = users/new the
template doesn't barf on
def already_voted_arts
!Vote.find_by_user_id_and_category(current_user.id, Arts).blank?
end
On Dec 2, 10:45 am, DanC d.m.coleg...@durham.ac.uk wrote:
Hi all,
I am trying to get my head around using view helpers.
My app has a Posters Model and I am allowing Users to vote on the best
poster
**MyModel.create(:amount = 40.50, :tax_rate = 0.10)
**assert_equal(4.50, MyModel.first.tax)
You should definitely work for the government. ;)
Gonna recommend you. :P
(Typos can happen to anyone.)
Cheers,
Chris
--
You received this message because you are subscribed to the Google Groups Ruby
66 matches
Mail list logo