Displaying 9 results from an estimated 9 matches for "stjernstr".
2006 Feb 23
5
Access to session from plugins
Hi!
I am writing an acts_as_ plugin and i need to access session data
from it. But i cant find any information if this is possible? And if
it is, how.
Cheers!
Mathias
2007 Aug 29
2
assign local variable instead of instance variable.
...: http://pastie.textmate.org/91995
The problem is that (assigns[:advert] = advert) creates an instance
variable and :collection => @adverts creates a local variable called
advert.
Is there a way of assigning a local variables in a view/template from
my description/spec?
Cheers!
Mathias Stjernstrom
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 14
0
rake migration with transactions.
...E table3 (xxx);"
execute "COMMIT work;"
I do this because if ''create table2'' fails, the process is aborted
but table 1 is still created.
Are there an easier way of doing this,
do i miss something obvious in migrations that does this by default?
Cheers!
Mathias Stjernstr?m
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
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 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 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
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