Displaying 13 results from an estimated 13 matches for "5valleys".
Did you mean:
valleys
2008 Mar 06
2
GateKeeper, Model Level Permissions Management
...ally removing records from arrays returned by ActiveRecord
finders that the current user doesn''t have permission to read. This is
disabled by default and a permission error is raised if a finder returns
an object the user doesn''t have permisison to read.
More Info Here: http://5valleys.com/posts/show/34
Online Documentation/Installation Instructions Here:
http://gatekeeper.rubyforge.org/
Feedback and Questions strongly encouraged.
--
http://www.5valleys.com/
http://www.workingwithrails.com/person/8078
--~--~---------~--~----~------------~-------~--~----~
You received this m...
2008 Mar 07
2
Trouble using RESTful helper
Hi,
I am trying to get into this REST thing, I have a nested resource
whith the following route:
ActionController::Routing::Routes.draw do |map|
map.resources :members
map.resources :clubs do |club|
club.resources :members
end
map.connect '':controller/:action/:id''
map.connect '':controller/:action/:id.:format''
end
Everything worked ok for this
2008 Mar 03
2
how can i know type of attribute with active record
Hello,
In my database, I have a table "products" with attributes :
- id
- title ->string
- desc -> text
I use active record, but I don''t know why recover the type of this
attribute with active record?
I try attributes_before_type_cast but I don''t see the type
Can you help me?
Excuse for my english (I''am a young student french)
--
Posted via
2007 Nov 01
1
List of Nth removed associated objects.
...like it should be possible, or am I missing
something that makes this fundamentally impossible?
3. If it is possible, is it a worthwhile feature that other''s would find
useful, or is it a bad idea or not worth the changes required to Rails
that would be necessary?
Thanks.
--
http://www.5valleys.com/
http://www.workingwithrails.com/person/8078
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubsc...
2007 Jun 27
1
re: multiple keys
I''m trying to find some videos from a table by the columns comedy_type and
round. I tried the following with no luck
current_contest.videos.find(:round => 1, :comedy_type => 1, :limit => 6,
:order => "rank ASC")
any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2008 Jan 31
0
Cross Site Sniper 0.2 (stable)
...informed decisions. )
Documentation and Installation instructions are at
http://xss.rubyforge.org/
Feed back and suggestions are welcome and encouraged. Big thanks to my
employer ( www.wwidea.org ) for allowing this code to be released to the
community under the MIT License.
--
http://www.5valleys.com/
http://www.workingwithrails.com/person/8078
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@publ...
2007 Jul 26
1
Bi-directional self-referential HABTM
Hi,
I''m having a little trouble figuring out how to make a self-
referential HABTM bi-directional.
I have a Employee class. Each employee can have a couple of bosses,
who are also employees. The employee class has the following HABTM:
has_and_belongs_to_many :bosses, :class_name =>
"Employee", :join_table => "bosses_courses", :association_foreign_key
=>
2008 Mar 20
2
link_to_remote confirm dialog title
Is there any way to set the confirmation dialog title when using
link_to_remote with the :confirm option?
In Firefox the dialog works fine but the title is:
"The page at http://localhost:3000 says:"
It would be nice if I could set that to something meaningful.
Any information is appreciated,
Rick
--
Posted via http://www.ruby-forum.com/.
2008 May 20
3
Flash message not shown after redirected by verify
I have the following snippet in a controller.
verify :params => "post", :only => [:create, :update, :destroy],
:add_flash => {"notice" => "Invalid Access"}, :redirect_to => {:action
=> ''list''}
If I directly access /posts/create by typing URL (GET), the program
redirects to the "list" action, but the flash message I
2007 Jul 18
3
application naming convention
I''m creating a new rails app. The application is named BigIdea. Should
I create this project using:
1. rails bigidea
or
2. rails big_idea
I know both will work, but just want to get off to the right start using
the proper rails naming convention.
Thanks!
Brian
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2007 Aug 27
1
Error 500 when displaying after creating a controller
Hello,
I''m currently learning RoR but I''m facing yp to a displaying issue.
I created a RoR project via the command rails project in the OS Linux
Ubuntu
Then, I also created a controller:
sudo script/generate controller about
exists app/controllers/
exists app/helpers/
create app/views/about
exists test/functional/
create app/controllers/about_controller.rb
create
2008 Feb 01
4
How to sanitize _before_ going into the database?
I use a call to the sanitize method every time I render some user
input, but it would be much nicer if I could clean it up once before
putting it into the database and avoid having to call the (relatively
expensive) sanitize every time I render a page.
My first thought was to just add something like:
def message=(x)
self[:message]=sanitize(x)
end
However, the sanitize helper cannot be called
2008 Jan 18
63
Jasper reports and iReport
Has anyone succeeded in producing Rails reports using jasper reports?
I have prepared reports directly with Jasper''s iReport tool using my
MySQL data. It is a very powerful reporting tool. The reports look
greate.
But I have not been able to produce the reports from my Rails
application. I have followed the instructions provided at: