Displaying 12 results from an estimated 12 matches similar to: "Nested route with collection"
2011 May 13
2
"message": "Error validating application."
Hi
I''m using omniauth to authenticate whith facebook and twitter
Twitter is ok
But when i push facebook button and log in facebook account it returns
me
message
{
"error": {
"type": "OAuthException",
"message": "Error validating application."
}
}
How can i fix it?
--
You received this message because you are
2006 Jan 04
5
help with link_to_if, I can''t make it work...
For the life of me I can''t get it to work. Here is an example of my
syntax. I''m trying to make comment.name a link to comment.web_site only
if there is a comment.web_site. Can someone please help?
<%= link_to_if(comment.web_site.length > 0, comment.name,
comment.web_site {"class" => "comment_by"}) %>
--
Posted via
2008 Mar 24
8
Proper idom for link_to_if
What I wish to do is to have a construct like this in a view:
<%= link_to_if <some test>, "New Model View", new_model_path -%>
<some test> has to return true if new_model_path is defined and false
otherwise. What is the proper idiom to do this in rails 2?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Jan 09
3
Scaffolding - disabling Create, Edit, Destroy for some user logins?
People,
I am using:
before_filter :login_required
in my Controllers and this works fine. For some tables I am happy to
use the output of eg:
ruby script/generate scaffold Author
but is there some way that I can disable Create, Edit, Destroy for some
user logins in the corresponding view?
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my
application.
This menu is the same for all controllers, but I want this behaviour:
<a>Users</a>
<span>Statistics</span>
and
<span>Users</span>
<a>Statistics</a>
depending on the page you''re currently on.
I''ve put a <render :partial =>
2006 Feb 05
6
render partial -- show certain content only if...
i''m working on a _post.rhtml partial, and it displays one blog post.
i''m accessing this partial on the list.rhtml and the show.rhtml
what i''d like is to only show the "link" link on the list.rhtml and not
on the show page.
<%= post.title%>
<br />
<%= post.body%>
<%= link_to
2006 Jan 11
5
stack level too deep problem
Hi all, I''m trying to overload the link_to function, (to disable link_to if
the user has no access right)
this is my code, it work the first time I run the application, the second
time I refresh the page I always get "stack level too deep error"
module UsersHelper
include ActionView::Helpers::UrlHelper
alias_method :link_to_original, :link_to
def permission?
true
2005 Dec 22
2
ACL Navigation Links
I''m currently using the ACL (Access Control Lists) system in my app.
The access control is working great, but I''d like to use the
permissions/roles setup in the database to hide links to areas a user
may not have access for automatically. I''m guessing that you could
setup a helper function to use instead of link_to and have it check
the permissions, but
2013 Mar 07
2
Puppet Dashboard changed reports view error
Hello Puppet Users !
We encounter a problem with the dashboard on this URI : /reports/changed
The /reports works fine with ~130000 reports (up to 3 months and
auto-cleaning with rake reports:prune job)
I make a reports:prune:orphaned, juste in case, but without any success.
The most recent change on the server was the puppetmaster upgrade from
3.0.2 to 3.1.0.
Here is the dashboard error log
2006 Jan 05
0
Re: help with link_to_if, I can''t make it work..
Nooby guess,
Do you need a comma between comment.web_site and {"class... ?
Looks like there should be 4 params...test, text, href and html_params
A.
On 4 Jan 2006, at 04:42, rails-request@lists.rubyonrails.org wrote:
> Date: Wed, 4 Jan 2006 05:05:39 +0100
> From: charlie bowman <cbowmanschool@yahoo.com>
> Subject: [Rails] Re: help with link_to_if, I can''t make it
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here:
http://wiki.developers.facebook.com/index.php/Facebook_Styles
I included testing and comments. I hope you find it useful.
Curiously, it''s really a small extension of FBML.
Richard
-------------- next part --------------
Index: test/rails_integration_test.rb
2006 May 23
1
How do I check if something was eagerly loaded?
I''m looking for a way to check an item in memory to see if an
association loaded. I load the association in the controller and then
in the view I need to check to see if the associated model loaded
because I display an attribute of it. Of course, if the model didn''t
load, because it doesn''t exist, I get an error. For example, in my
controller I have thus: