Displaying 20 results from an estimated 2000 matches similar to: "Access to session from plugins"
2006 Feb 13
1
Component or plugin
Hi!
I have been learning rails for a couple of week now.
Mostly i''ve worked on a authorize/roles system and now i go to the
point that i want to separate it from en rest of my application to
share it with others and to use it in other projects.
It is a quite simple system that i implement using before_filter.
My vision is to separate the authorize methods and even some basic
2006 Feb 23
9
Suddenly a Blank Page
This is apache/fcgi/rails/firefox.
When using a rails app we have been experiencing sudden blank pages in
the browser.
We show an model "new object" page and start changing stuff and all of a
sudden the page will be erased to blank!
Any idea what could cause something like this?
--
Posted with http://DevLists.com. Sign up and save your time!
2007 Aug 29
2
assign local variable instead of instance variable.
Hello,
I have a view that generates a list of adverts with <%=
render :partial => ''advert'', :collection => @adverts %>
I have the render call described with
@controller.template.should_receive(:render).with(:partial =>
''advert'', :collection => @adverts)
Bu when i was about to describe my partial i got stuck.
My partial _advert.rhtml:
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi
From what I understand about documentation about require_dependency,
this function will work like require but the file will be reloaded on
every request to the server when in development mode.
I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have
created a minimal Controller and hooked up it''s "index" action at the
site root. I have also created a
2006 Mar 27
2
dispatch.fcgi hanging after lighttpd shutdown
Hi.
I''m using RoR 1.0 with FastCGI and lighttpd on a Debian 3.1 box. I
have configured lighttpd to do adaptive spawning of the FastCGI
processes.
However, after shutting down lighttpd the FastCGI processes remain
running.
Did this problem occur to anyone of you? Is there a fix?
I''d be really grateful for every answer.
Regards,
Manuel Holtgrewe
2006 Jan 14
12
Dedicated Host Recommendations?
I currently have a dedicated server at ev1servers, but
it''s getting rather antiquated (Redhat 9) and am
looking to upgrade. I''m thinking about serverbeach.com
- one of their CentOS servers. Anybody have any
recommendations for dedicated servers on which to run
Rails? Hopefully less than $200/month.
Thanks!
CSN
__________________________________________________
Do You Yahoo!?
2005 Aug 21
8
validates_numericality_of
As far as I can tell "numericality" is not a word. Maybe this method
should be renamed.
--
R. Mark Volkmann
Partner, Object Computing, Inc.
2007 Feb 28
1
rdoc for Spec::Rails ?
Hi,
where can i find the rdoc for rspec-rails.
The content of README-FIle of rspec_rails is:
"See Spec::Rails"
But i couldn''t find Spec::Rails on http://rspec.rubyforge.org/rdoc/
index.html (it is updated to 0.8.0)
Best
Hussein
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or
acts_as_tree or acts_as_nested_set.
I am unable to decide among these. please could some one recommend from
their experience?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 26
4
New CMS: AdminPages. uses sortable tree to arrange pages
Hi all,
I spent the last three days on a half-serious attempt at creating a
simple, minimal CMS system on rails.
check it out at http://adminpages.flowdev.de
What it can do:
manage pages in a sortable tree
Add custom page elements
Three page elements ready: Raw HTML, WYSIWYG editor, Rails
render_component interface
Sort page elements with drag&drop
Choose page layout
choose page element
2006 Jun 08
2
how to add plugin to ActiveRecord
I''m trying to set a date field''s day to the last day of the month before
I save it. I can do this successfully now using this code:
class Account < ActiveRecord::Base
def before_save
self.exp_date = last_day_of_month(self.exp_date)
end
# Returns a Date object set to the last day of the current month
def last_day_of_month(date = Date.today)
next_month_str
2006 Feb 27
2
Publishing a Plugin via ./script/plugin
Hi
How do I publish a plugin so I can download it via ./script/plugin.
I''ve put my plugin (ActiveRBAC) on http://wiki.rubyonrails.com/rails/
pages/Plugins but seemingly ./script/plugin discover does not find it :/
Even if I do
./script/plugin source \
https://activerbac.turingstudio.com/source/active_rbac/trunk/
active_rbac
it does not appear on ./script/plugin list.
2006 Mar 02
3
Modifying "Find" to always add a condition?
I''d like to always add a condition to any version of "find" (e.g.
Thing.find(), Thing.find_by_name(), Thing.find_by_whatever) so that in
addition to whatever conditions are set, an additional condition is set
:conditions=>"user_id=#{current_user.id}"
I''d like to make sure that a user only sees/edits/creates entries in the
database that have the user_id
2007 Sep 10
2
Removing an AR class definition, for testing plugins
I''m writing an acts_as_* plugin and am trying to BDD it. Ideally my
specs would look like:
describe ActsAsCloneable, " basic cloning" do
load_example_classes
School.class_eval do
acts_as_cloneable
end
before(:each) do
@old_school = School.create! :name => "Baylake Pines", :city =>
"Virginia Beach", :guid => "abc123"
2006 Mar 02
17
can''t get rails to connect to mySQL - HELP!!!!!!!!!
Sorry, but this is really NOT as easy as the tutorials/books make out.
I''m really struggling at the first hurdle here. And while I''m not a
programmer by design I do know my way around most stuff. And if I can''t
get this to work I suspect more people will have the same issues. There
seems to be too many variables to address.
I have winXP, I have ruby and rails all
2006 Jun 01
2
Migrating Data from Many Databases to One
I had some concerns about breaking Rails table relationships (:has_many,
:has_and_belongs_to_many, :belongs_to, :acts_as_*, etc) when moving multiple
databases (using the same application) into one.
I seem to be stuck when trying to wrap my head around a good database design
for what I would like to do or if I am just completely not thinking
straight. I guess this isn''t related
2005 Dec 30
3
model - controller always one-on-one?
Hi All,
Is it necessary to always have a controller per model?
Rephrased:
Would you end up jumping through hoops in the future if you have a controller
called Customer in which you add methods to create new companies as well as
new contacts?
Thanx
Regards,
Gerard.
--
"Who cares if it doesn''t do anything? It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS
2006 Feb 27
21
what hardware shuld I but to manage 100k of connections per day?
I''m doing a fotolog for a company.
It''s expected to manage about 100k of connections per day and about 1500
concurrents connections.
What hardware should I buy to manage those numbers of connections?
I''m planning to use slackware + lighttpd + fastcgi, but perhaps we will
have to reuse some scripts in php, in that case I would use slackware +
apache + mod_php + fastcgi
2006 Mar 03
19
Dreamhost rating?
Hi, I''m looking at getting some hosting to support RoR development. Thus,
how would you rate Dream Host?
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/91b84488/attachment.html
2005 Nov 02
4
acts_as_metadata?
I''m running into the need (on at least one project now) to implement
end-user-customizable "metadata" or properties on model objects. The
standard example would be a Person class that had first_name,
last_name, etc. but would need to be extended real-time (through the
web admin interface) with properties such as phone_number : varchar
(30). I''ve done some basic