Displaying 20 results from an estimated 33 matches for "rails_plugin".
Did you mean:
rails_plugins
2006 Jul 19
4
Using Application.rhtml as layout for all controllers
I put my nav system in application layout. that way any controller
loading will have the nav system. I have one problem though - the <%=
yield %> is in the body, so how would my controllers specify other css
files?
my application layout would look like this:
<html>
<head>
title
css include
javascript include
</head>
<body>
nav system
<%=yield%>
2007 Sep 14
6
Need help in View Spec
Hello everyone:
I am kind of puzzled in writing spec on view partials. I can not find much
information about the "should have_tag" syntax in Rspec. Can rspec test a
particular attribute of a tag (e.g. input tag)? Let me put an example here:
#../view/group/_index
<div id="test">
<input type="button" value="update" onclick="update()"
2005 Dec 21
1
Active Search
Issue:
I am trying to get a good quality search capability across our site. I
ran across ActiveSearch
(http://julik.textdriven.com/svn/tools/rails_plugins/simple_search/)
which seems to be a better solution for us than SimpleSearch (and
SearchGenerator) as it is more than just word based. However, I am
unable to get the project built and being fairly new to Ruby / Rails I''m
a little at a loss. My first choice would be a magic gem install (i...
2006 Jul 13
6
Migrations + foreign keys
Hi all,
In the AWDR author use the execute method to declare foreign keys:
execute "alter table.... add constraint.... foreign key...."
Is there a ruby sintax to declare a foreign key in a migration class?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 05
1
unicode hacks - fixes for webrick and Safari
Hello!
First, thank you Julian for the useful plugin ''unicode_hacks'' <
http://julik.textdriven.com/svn/tools/rails_plugins/unicode_hacks/>.
I have found some problems running my app in development on Webrick
and looking at it with Safari (MacOS X 10.4.3, Safari 2.0.2). Some
files are sent with different sizes (e.g. default css example, or
controls.js ), and it causes long delays for each request.
When I ch...
2008 Apr 29
5
Sharing: dont_repeat_yourself plugin custom RSpec matcher
I wrote a Rails plugin which uses simian to look for duplicates lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
should be_DRY }
If you use Autotest, your specs will fail the next time you do a nasty
copy-paste !!!
More details in
2006 May 25
24
Make these a prt of Ruby on Rails!
3 things that should be part of the main Rails tree:
http://www.redhillconsulting.com.au/rails_plugins.html
Views?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 25
7
Unicode HOWTO?
I am disappointed about the (seeming) lack of Unicode support in Rails.
Is there a howto about working the most important limitations? For
example, figuring out the length of an entered word: "???".length() will
return 6, not 3. So if there is a maximum number of characters a user is
allowed to enter, this won''t work as it should -- it treats strings as
byte arrays instead
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all
I have a new migration file created that adds some tables and fills one
with some data:
create_table :sound_styles do |t|
t.column :name, :string, :null => false
end
create_table :show_types do |t|
t.column :name, :string, :null => false
end
create_table :countries do |t|
t.column :name, :string, :null => false
end
ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2006 Jul 10
3
Can migrations set up foreign key references?
I use Oracle and i really want to use migrations, but there seems to be
no way to setup foreign key constraints. Is this true? If it is then
doesn''t that make migrations useles with Oracle?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Apr 23
0
Using unicode_hacks breaks Rails 1.1 RJS
All,
I wasted an hour on this, so here''s a quick post to save you from the
same. If you are using
"unicode_hacks":http://julik.textdriven.com/svn/tools/rails_plugins/unicode_hacks/
for "multi-lingual
support":[http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings/versions/40]
(i18n), there''s a gotcha - RJS templates will not work.
The culprit is line #4 in lib\actionpack_filters.rb, which sets the
character set in the HTTP header t...
2007 Jan 03
0
0.7.5 Doesn''t Let My Tests Run
...endor/rails/activerecord/
lib/../../activesupport/lib/active_support/dependencies.rb:349:in
`const_missing'': uninitialized constant
Spec::RailsPlugin::ResponseBody::TagExpectations (NameError)
from /Users/minime/rails/voodoo_work/vendor/plugins/vendor/
plugins/rspec/lib/spec/rails_plugin/response_body.rb:4
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require''
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require''
from /Users/minime/rails/voodoo_work/config/../vendor/...
2006 Nov 07
2
Plugin to add client side JS forms validation ?
Hi,
is there a plug in or other things to easily add some client
verification for HTML forms ?
Thank you very much.
Nicolas.
--
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
2006 Aug 01
0
Unobtrusive Javascript for Rails 0.2
...used Rails Javascript/AJAX helpers upgraded to work in an unobtrusive
manner. Grab Unobtrusive Javascript for Rails 0.2 now!
More information:
http://www.lukeredpath.co.uk/index.php/2006/08/01/release-unobtrusive-
javascript-for-rails-02/
Subversion:
http://opensource.agileevolved.com/svn/root/rails_plugins/
unobtrusive_javascript/tags/rel-0.2
Plugin documentation:
http://opensource.agileevolved.com/unobtrusivejs/
Cheers
Luke Redpath
www.lukeredpath.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/2006080...
2006 Aug 04
1
ActiveRecord, Mysql, NULL columns and uniqueness
Hi all.
Mysql allows to set multiple NULLs on columns with unique constraint,
it''s normal SQL. Well, but when I try to submit some form, all
unspecified values will be consodered as '''' (empty string) and
(Mysql::Error: Duplicate entry occurs (((. How I can teach ActiveRecord
to consider empty fields as NULL?
2006 Nov 10
2
Testing with foreign keys
I''m looking for a plugin/whatever for preloading fixtures, to run
tests with FKs defined.
Specifying load order just doesn''t work for me, I need to purge the
test db, load all fixtures, and only then create the FK constraints.
Any suggestions?
Isak
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Jun 09
2
edit- view duality
Skipped content of type multipart/alternative-------------- next part --------------
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
Bear Stearns does not provide tax,
2006 Jun 18
0
Rails Core Weekly June 11 - June 18
...icode_str.u.length
@unicode_str.u.reverse
This sets off a very lengthy cross-list discussion about
Rails'' and Ruby''s Unicode support in general. Relevant
for us is that Julian has provided the solution in a nice
little plugin available here:
http://julik.textdriven.com/svn/tools/rails_plugins/
[ thread: http://www.ruby-forum.com/topic/68209#new ]
The discussion on partial commit access goes on. DHH
likes the idea for the database adapters but doesn''t see
the usefulness for access outside of that.
[ http://www.ruby-forum.com/topic/69185#new ]
The most fun thread this week...
2007 Jan 24
7
Differences between assert_tag and assert_select
Hi all,
I can't seem to make assert_select work for the more complex cases for me.
Here's a sample:
# View
<%= link_to_remote 'Add new', :url => new_phone_url, :submit => 'phones_head' %>
# Generated code:
<a href="#" onclick="new
Ajax.Request('http://test.host/admin/parties/phone/new',
{asynchronous:true, evalScripts:true,