Displaying 3 results from an estimated 3 matches for "get_resource".
Did you mean:
get_resources
2006 May 04
3
Problem using url_for
I''m trying to generate a URL of the form
controller/action?id=<id>&type=<type>. My code looks like this:
url_for(:controller => ''content'',
:action => ''get_resource'',:id => item[''Id''],:type => item[''type'']
)
The url I end up with looks like this:
http://localhost:3000/content/get_resource?type=<type>
(the <type> is correct, the issue is tha the ID is entirely missing).
What am I doing wrong...
2007 Jul 14
2
Using Helpers inside a Controller
...ller method for an AJAX
application. After the page is loaded and displayed, there will be an
asynchronous javascript request to load additional resources such as
html forms and other data.
The controller which handles the request will collect the resources and
send them back in json format.
def get_resources
data=Hash.new
data[:form1]=form_helper1()
data[:form2]=form_helper2()
...etc....
render :text data.to_json, :layout=>false
end
This works great if I''m loading up the data hash with pure data, but I
can''t collect html elements such as forms that require helpers bec...
2008 Aug 21
1
Quota plugin
Hi!
I have some questions about quota plugin. I have taken quota-maildir as
example.
What does the function maildir_quota_root_get_resources? When it is
called? I have tested including some log messages, but it wasn't appears
in the log file.
When dovecot calls this function? It is an important function?
Regards
/
/
--
Thiago Monaco Papageorgiou <thiago.monaco at corp.terra.com.br>
________________________
Terra Networ...