Displaying 20 results from an estimated 7000 matches similar to: "doable ? action caching if anonymous, fragment caching if logged in ?"
2006 Jan 31
2
Fragment caching and pagination
I''m just getting my hands dirty with caching. The pages I want to cache have
some user specific data on them (for example "log out"). That sent me down
the route of fragment caching. One of the things I want to pagination is a
paginated list. My question is how is pagination and query strings handled
with fragment caching? Does each page get its own fragment and query string
2007 May 16
7
bilingual site: exclude fields set from query
Hi all,
Is there a way to have searches no use some indexed fields, when
processing a query?
context:
I have a model Foo that holds some information in two languages :
- text1_nl, text2_nl, text3_nl
and
- text1_en, text2_en, text3_en
Some other fields are common to both languages and indexed as well
- first_name, last_name
Depending on the visitor language choice I need to exclude the
2006 Jan 23
2
Action Cache upgrade plugin
This plugin is available through the Rails plugin mechanism as
''action_cache''
>From the README:
=== Action Cache update
This is a drop in replacement for the Rails Action Cache. When this
plugin is
installed, the new behavior will take effect without any further
configuration.
All documentation for the Rails Action Cache is still relevant.
=== Features
2006 May 25
6
150 Rails Plugins
The Rails Plugin Directory now has over 150 plugins and RDoc support
too: http://www.bencurtis.com/archives/2006/05/150-rails-plugins/
--
Benjamin Curtis
http://www.bencurtis.com/
http://www.tesly.com/ -- Collaborative test case management
http://www.agilewebdevelopment.com/ -- Resources for the Rails community
2006 Mar 08
7
Function could determine the caller action ?
Is it possible to determine which action call the function ?
In example, func_test in ApplicationController could determine which
action from SiteController is calling her ?
in class ApplicationController I have
def func_test
if ( calling from index )
return "1" end
if ( calling from contact )
return "2" end
end
and in class SiteController
def
2007 May 19
4
button_to_function with image?
Hi:
does button_to_function allow the use of an image? I tried it in place
of the text with "image_tag" and it doesn''t work. Maybe some form of
button_to?
Any direction you can give would be great!
Mike
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Mar 27
3
Specify a controller action via attribute in INPUT tag?
I have a pre-existing form with one existing "SUBMIT" tag generated by
<%= submit_tag %>
I would like to add another <INPUT type="submit" ...> to my form.
How do I successfully associate that <INPUT> tag with a different
controller action than the default one specified by my <%=
start_form_tag %>?
Or does this approach even make sense?
In RoR, is
2007 Jan 24
6
dojo and prototype compatibility?
are there any compatible issues that exist when trying to use both
prototype and dojo at the same time?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2006 Jun 30
5
If / Else Form layout question.
Hello all,
I''m using the following _form.rhtml layout for a number of pages,
including edit record and new record (which each has it''s own definition
in the controller).
I''d like to display a different author form field depending on which
page they are using. I''d rather keep using _form.rhtml as a layout
template, instead of customizing each separate page.
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if
statement? I am using the same form for edit and new and I have a
cancel button on the page.
This cancel button is built with an if statement that looks right now
to see if a parameter exists to define where to go back to if the
user cancel. The problem occurs when the user submits the form and
there are missing fields by
2005 Dec 21
7
Are there any disadvantages to using locomotive
Hi:
I had some issues and so switched to locomotive. I find it awesome. 1
click and its done.
My question - what disadvantages are there, if any? What do I lose by
using such a convenient solution.
speculation as well as facts are welcome but please define which you
are putting forwards.
Thanks in advance,
bruce
2006 May 17
13
Using NTLM for S.S.O. in Rails
Greetings all,
To all the good souls that happen to know NTLM and Rails....
Short version:
--------------
- I''m looking for server code to extract credentials through NTLM dialog
with the client (IE)
- I found nothing usable/useful (as they both implement the client side
code) in
- rubyntlm on rubyforge
- lib ntlm-ruby by Jonathan Bastien-Filiatrau
LONG version:
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code:
@project_pages, @projects= paginate :project,
:per_page => 10,
:conditions => ["account_id = ?", account]
?!
If only I could pass the sub-collection
account = ...
@projects = account.project
to paginate, instead of letting it extract it with a find :all + sql
conditions
Alain.
--
Posted via
2008 Apr 02
9
application.html for website in 2 languages?
Hello,
I''m a newbie on the rails environment. I''ve just created an
application.html.erb to have the same layout on all pages but the site
will be available in 2 different languages, then with 2 different
layouts.
Then I would like to have an application.html.erb with the layout in
French and an application.html.erb with the layout in English.
Thanks you for your help,
--
2005 Dec 15
4
rake migrate ignores '':null => false'' on mysql
I wanted to add a login string column to an existing table
=> I created a migration :
...
def self.up
add_column "members", "login" , :string, :null => false
end
...
remark: it shouldn''t work, as the table is not empty (=> ''login'' would
be null in the existing rows.)
problem:
rake migrate didn''t complain
2006 Mar 22
6
Project management
Hello for all,
Anyone using any software for management your projects?
Thank''s
--
Posted via http://www.ruby-forum.com/.
2006 Feb 11
5
acts_as_taggable : plugin vs gem
Googling for acts_as_taggable is a little confusing: gem, plugin?!
What are the differences?
Which one to choose?
Where is the best doc?
Alain
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all,
I was playing with the sample project found on the Wiki at
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
, and everything was working fine, ... till I moved to EdgeRails :
undefined method `weight'' for #<Hash:0x22c7150>
(full error thread below)
Any idea?
Alain
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a
stop word.
=> I get a
2007 Feb 01
12
RESTful Rails and other musings
Hi all,
I would first like to introduce myself to the Ruby on Rails (RoR)
community and to say that I hope to begin to build some relationships
with other RoR developers.
I''m a long time Java programmer (5+ years). Java was my first
experience with Object Oriented Programming (OOP). Before Java I
developed using many other languages including C, Pascal, Fortran,
BASIC, Visual Basic,