Displaying 20 results from an estimated 6000 matches similar to: "Chaining actions"
2006 Jun 04
1
Image links in stylesheets?
Guys,
I understand the logic behind using image_tag in rhtml to maintain app
portability, but how do you link to images in a stylesheet maintaining
that same portability?
Thanks for your help!
B.A.
--
B.A. Baracus: I thought you weren''t crazy no more?
Murdock: Only on paper.
--
Posted with http://DevLists.com. Sign up and save your mailbox.
2006 May 06
3
Extending Rails plugins?
Gents,
I''m using the acts_as_taggable rails plugin (not gem), and would like to
add some additional methods to it. For example, the find_tagged_with
methods essentially does a find tag in a list (effectively an OR), while
I''d like to implement a find_tagged_with_all method that would implement
an AND (so if I specified 4 tags, it would only return items that were
2006 Jun 17
5
STI versus Composition...or the headaches of one big table
Guys,
I have a relationship between model classes that I believe is best
represented by inheritance, but the likelihood that things will change
often is driving us to composition instead.
So, I have a class called Autos, and subclasses called Suvs, Minis,
Mids, Sports, for example.
We have been requested to avoid the STI approach to this, because of
fear of a quickly growing table with
2006 May 31
0
Morfik versus RJS?
Just curious...since Morfik is going after Google...do you think they''ll
try to claim RJS violates their patent as well? I for one think such a
claim would be ludicrous, but we all know patent lawsuits and rationale
are polar opposites.
B.A.
--
B.A. Baracus: I thought you weren''t crazy no more?
Murdock: Only on paper.
--
Posted with http://DevLists.com. Sign up and
2006 May 07
6
Challenging SQL for you...
Gents,
My heads been out of the sql game for too long (or it''s simply too early).
I''m trying to extend the acts_as_taggable plugin (note: not gem) so that
you can specify a list of tags you''re interested in, and the plugin will
return only those items that are tagged with *all* these tags.
The plugin uses primarily two tables: tags, to keep all the various tag
2006 Jun 15
11
OT: Anyone have experience with completelydedicated.com?
Guys,
I''m in the market for a reliable, trustworthy dedicated server solution.
I''ve been running my own servers internally on a Speakeasy Static IP DSL
connection, but recent problems with my local loop has caused me to
reconsider this solution.
completelydedicated.com offers a value Sempron for $59/monthly...a bit
higher than I wish to go but I have no choice. Can
2006 Jul 05
8
Beating the authentication horse (dead yet?)
Guys,
I''m frankly overwhelmed by the number of Rails authentication options(?)
out there...from ActiveRBAC to acts_as_authenticated to LoginEngine and
so on...so many options, yet on resource I''ve found really distinguishes
between each.
This is sad, as authentication and user management is really an area
where some Rails simplicity pixie dust could be a real boon to
2006 Jan 05
0
Subdomains - redirect to different actions?
Hey,
I''m trying to figure out what the most elegant way to do this - I''ve only got a small
amount of different subdomains corresponding to categories -
and I''ve been using fragment caching.
In particular, I was wondering what the best way to call these actions is -
I''m thinking redirect and render_component aren''t really very nice
2006 Jul 06
17
Linux distros
Is there any particular distro that seems to be most used among RoR
developers on Linux? Any that might provide better support somehow for
development of RoR apps?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 22
5
Problems with layouts
ruby script/generate controller Tools::Search - ok
in views/layouts/application.rhtml:
<%= render_component :controller => ''tools/search'',
:action => ''searchbox'',
:params => {:context =>
''header-section''}
%>
in
2006 Apr 30
13
Programming with designers in mind
Gents,
We''re hard at work on a new Rails app. We''re a small group of
developers...not a web designer in the bunch. We know CSS enough to be
dangerous, but we shy away from the "softer" skills (all the while
envious of those with that capability).
We intend to grow our application in terms of functionality, but I need
to make sure we keep an eye towards
2006 Jan 24
1
render_component and private access...
I was wondering if rails had any means of restricting access to an
action in a controller (like they can''t type in url.com/cont/action,
that would throw an error). The thing is I would like to be able to
access this method/action through a call to render_component, so
therefore, I don''t think private methods will work.
So basically I am looking for something that cannot be
2006 Feb 08
1
render_component vs. render_component_as_string?
I''m calling render_component in a helper.
render_component :controller => target_controller, :action => "show", :id => target_id
This works fine, except that passing the id in :params didn''t work and
I had to pass in an explicit :id parameter to get the target
controller to override the id - is that documented anywhere?
That''s not my question. My
2011 Feb 28
1
Problem with render_component and rails 3
I have a application that it use view/layout/application.rhtml, in
this file I have:
<%= render_component :controller => ''car'', :action =>''index''%>
But there is one problem, it display this problem: undefined method
`render_component'' for #<#<Class:0xb67e6e48>:0xb67e5f34>
How can I resolve this problem?
--
You received this
2006 Apr 07
1
Help... Ajax scaffold problems
Hi all,
Any help is appreciated. I used the ajax scaffold generator to make 3
scaffoldings. Then I put them together as components in a combined layout
and created a master controller, which happens to be named "dataentry''.
That works fine.
Within each of the components, I was able to set up links that paginate and
update the div (for the component) with correctly paginated
2006 May 26
1
flash.keep not working with render_component
Using Rails 1.1.2 and ruby 1.8.4
I''m having a weird issue with the flash when using render_component for
an action inside different controller than the one from which you
render. I''m passing an object via flash across a couple of actions (new
and create) behind the scenes using flash.keep(:object). It works fine
if the component I''m rendering is in the same
2006 May 07
0
caches_action and render_component
I''ve made some test:
------------------ CODE ------------------
class FooController < ActionController::Base
caches_action :foo
def foo
render_text ''Hello, foo<br />''
end
end
class BarController < ActionController::Base
def bar
render :inline => <<-EOS
Hello, bar <br />
<%= render_component(:controller =>
2006 Mar 14
0
how to render_component in global layout
Hello,
i have one layout file for all controllers. I would like to have news
list on each page. So, i put <%= render_component :controller => "news",
:action => "list" %> , to my layout file. But this doesn''t work at all.
I get error "Application could not be started.. ".
If I put render_component to some view file say
2011 Dec 12
0
<%= render_component %> Tag cloud issue for rails version 2.3.11
hi all,
in my application there is tag''s cloud in old code which is load using
following code
<%= render_component :controller => "controller_name", :action =>
"tag_cloud_homepage"%>
now i upgrade the ruby,gem and rails version to
Ruby :1.8.7
Rails :2.3.11
gem :1.6.2
and i am using Windows XP as O.S
my question, now in Rails 2.3.11 "<%=
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys,
This is the final list of the new maintainers of each plugin.
We need two more things to do:
First please the owners of the repos add the rest of the maintainers.
Second I will add a note on each rails/plugin mentioning this repos updates.
So from now on, if someone else is interested in helping/contributing
please send a message to the appropriate repo owner.
verification