On Lunes, 20 de Julio de 2009 19:52:57 exn escribió:
> Hello guys !
>
>
>  I have many questions, but here will be much important.
>
>   How I can disable or override throwing 500 error ? I need this
> because I can't use current_user.has_role at time activescaffold
> configuration.
>
>   How I can create line of links like
>
>    a b c d ... on click of each will be open activescaffold with names
> of users which beginings from this latter ??

<% [A..Z].each do |character| -%>
<%= link_to character, users_path(:character => character) %>
<% end -%>

And in your UsersController add conditions_for_collection:
def conditions_for_collection
        ['name = ?', params[:character]+'%'] if params[:character]
end

>
>   How I can create date ranges select ?
>
>  last two questions maybe nooby , but first question is very very very
> important.
>
>
>  Hope for your advices guys !!
>
> 
-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to