Displaying 20 results from an estimated 3000 matches similar to: "Where is WillPaginate::Finders ???"
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all,
I cannot figure out how to correctly use the with_output_buffer helper
method (located in ActionView::Helpers::CaptureHelper) inside a custom
FormBuilder.
Below follows a simplified example.
I''m trying to achieve the following behavior in an ERB as suggested in
the form_for helper docs in the Rails source:
==========
<%= form_for @object, :builder => MyFormBuilder do
2010 Jul 20
2
uninitialized constant WillPaginate::LinkRenderer
This is becoming painful. Where the file should be? What should be in
it? I am running will_paginate 3.0.pre
Here is my current code sitting in initializers/
class WillPaginateRenderer < WillPaginate::LinkRenderer
def rel_value(page)
"nofollow"
end
end
Thanks for your help,
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
2010 Sep 27
3
having some issues with factory_girl and bundler...
Hi All
Need some brilliants minds here :)
I''m using Rails 2.3.8 & ruby 1.8 (I know, I know... )
I''ve move my gems from .gems to Bundler, but I''m having some issues with
Factory_girl when I rake spec
"uninitialized constant Factory"
I''m following the instructions from http://gembundler.com/rails23.html.
Basically:
- grab all config.gem and place
2010 Mar 02
2
chain.c32 "Chainboot failed!"
Hi,
I am using syslinux-4.00-pre24, -pre27 and -pre31. chain.c32 fails for pre27 and pre31 for particular configs ... shown below.
1) works on pre24, fails with error message "Chainboot failed!" for pre27 and pre31
LABEL local
MENU DEFAULT
MENU LABEL Local Boot ... (skip PXE boot)
KERNEL chain.c32
APPEND hd0 0
2) works on all three.
LABEL local
2009 Mar 21
2
ApplicationHelper::WillPaginate (NameError)
What wrong?
environment.rb
require "will_paginate"
application_helper.rb
include WillPaginate::ViewHelpers
def will_paginate_with_i18n(collection, options = {})
will_paginate_without_i18n(collection, options.merge(:previous_label =>
I18n.t(:previous), :next_label => I18n.t(:next)))
end
alias_method_chain :will_paginate, :i18n
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m
having all kinds of problems with Rails, but the latest problem has me
stumped.
Whenever I run rake db:seed to populate my database I hit the following
error:
** Invoke db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:seed
rake aborted!
uninitialized constant
2008 Feb 01
2
Facebooker interfering with existing application
Hi!
I have an existing application, basically a very simple Hobo app. It
works...
When I install the Facebooker plugin and create the facebooker.yml file
(with valid or fake content, doesn''t matter), the original app starts
behaving strangely.
The controller and view logic keeps working, but several static files stop
being served from http://localhost:3000/javascripts and start being
2010 Mar 04
2
recompiling syslinux 4.00pre31
Hello,
I try to recompile syslinux-4.00 pre31 on RHEL5 with gcc-4.1.2 and nasm
2.07.
Because I'm looking for information about that gpxelinux->chain.c32 hd0
boot problem I added -DDEBUG=2 to com32/lib/Makefile
I get:
objdump -h pxelinux.elf > pxelinux.sec
perl lstadjust.pl pxelinux.lsr pxelinux.sec pxelinux.lst
objcopy -O binary pxelinux.elf pxelinux.raw
../lzo/prepcore
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there,
I''m solving the problem about the plugin Magick. In my app in Gemfile
I''ve follwoing:
require ''rubygems''
require ''mongo''
require ''RMagick''
include Magick
and in a model Files:
class Files
def self.save(upload)
...
img = Magick::Image.read(''public/data/nature6.jpg'').first
end
end
2010 Mar 04
1
PXELINUX output 3.85 vs. 4.00
PXELINUX 3.85 pre13-1-gee43a6e* Copyright (C) 1994-2010 H. Peter Anvin et al
!PXE entry point found (we hope) at 9F00:0680 via plan A
UNDI code segment at 9F00 len 0AB0
UNDI data segment at 9E00 len 1000
Getting cached packet 01 02 03
My IP address seems to be C0A80168 192.168.1.104
ip=192.168.1.104:192.168.1.99:192.168.1.1:255.255.255.0
TFTP prefix:
Trying to load:
2011 Dec 17
7
How does bundler know whether Gemfile has changed?
I am trying to understand how bundler works. Looking at the manual [1] it says
"If a Gemfile.lock does exist, and you have not updated your
Gemfile(5), bundler will fetch all remote sources, but use the
dependencies specified in the Gemfile.lock instead of resolving
dependencies."
The question is how does it know whether Gemfile has been updated? I
expected to find something in
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
Rails application which i create manually like
rails new blog
and the content of the file "blog/config/boot.rb" are
require ''rubygems''
# Set up gems listed in the Gemfile.
gemfile = File.expand_path(''../../Gemfile'', __FILE__)
begin
ENV[''BUNDLE_GEMFILE''] = gemfile
require
2012 Feb 23
4
Undefined Method
Hi all,
I am currently trying to get a bunch of links to to display all the
related console records upon button click so e.g. If a user clicks on
the Dreamcast link then I would like it to display all records that have
Dreamcast stored as their console.
I have the following example code in my index class:
<%= link_to ''DREAMCAST'', games_path(:console =>
2011 Feb 12
10
GemFile error + General Help?
Hello,
I''m a complete beginner in Ruby on Rails, so excuse me if this is a
ridiculous question. Just to bare in mind, I''m using Mac OSX (Snow
Leopard), Rails 3, and sqlite3 as a database. I''ve checked, and
everything is up to date (Rails, Ruby, Gems). I am simply creating a
test application, and I understand the way to run that is by running the
''rails
2010 Sep 20
1
Should a Gem's dependencies be listed in the parent app's Gemfile?
I am working on a Gem that has several Gem dependencies of its own.
The Gem''s .gemspec looks good (I think) and when "bundle install" is
called from the parent app, it lists that it is indeed "Using" the
Gem''s required Gems. I''ll refrain from an Inception analogy here ;)
When I fire up the app and make a request, I get "uninitialized
constant
2011 Feb 21
4
autotest with Growl not working
Hi I''m new and using Ruby on Rails 3 but when I run $ autotest nothing
happens (I have growl installed). If I run $ rspec spec then I get the
''Finished in 0.07253 seconds seconds 2 example, 0 failures'' message
I have the following gems installed for autotest (checked via $ gem
list):
autotest (4.3.2)
autotest-fsevent (0.2.4, 0.2.2)
autotest-growl (0.2.9, 0.2.4)
2008 Feb 07
1
field names, aliases and finders.
I can not seem to make finders work with aliases. My goal is to map
some fugly field names to nice field names and have the finders work
with the nice field names.
An example.
class Users < ActiveRecord::Base
alias :password :UserPWD
end
This doesn''t seem to work because obviously the object doesn''t have a
method called UserPWD.
What is the best way (short of a view) to
2013 May 18
3
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
I''m careful to create separate gemsets for each project, so when I run
bundle install, it only installs gems for that gemset. This way gems
dont creep into the wrong projects. Now I just pulled a project from
github. I made sure I was in the correct gemset, and then I run bundle
install and it works fine. but then when I use rake to create the
database "rake db:create". I get
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require