search for: tachekent

Displaying 12 results from an estimated 12 matches for "tachekent".

Did you mean: cache_ent
2006 Jan 25
1
deep inspecting attributes
...9;' %></p> <% end %> however if I do: <%= debug(@artist) %> from the same template, then my array of films never appears. Why is that, and is there a way I can make it appear? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 23
11
mysql dates
...' in a date_select form, the result is always applied to the date field in the db as eg. Jan 01, which means that as far as I can see blank values aren''t possible. Am I missing something? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 19
3
template/variable confusion
...ly though should be done like this: self.running_time.strftime("%M:%S") ? It''s taking me a while to get the idioms and the heuristics for RoR... Thanks in advance for any help available! dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 23
2
require rmagick
...oking for RMagick in my system I find: /usr/lib/ruby/gems/1.8/gems/rmagick-1.9.3/lib/RMagick.rb /usr/local/lib/site_ruby/1.8/RMagick.rb but do I need to specify where rails should be looking for these files? dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 18
1
using unique varchar instead of id
...#39;t :id to appear in URLs or elsewhere, I want it all to work from :unique_name. It seems like something that I should be able to do globally for a project, but I''m not sure where to start. thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 19
0
setting helper defaults
...given controller) (DateHelper in theis instance). I know beforehand that I''ll always want :include_blank => true, :start_year => 1991 and I have a lot of date fields. This possible? thanks in adv. d -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 25
0
InstanceTag
...and then came upon InstanceTag.new with a call to_date_select_tag at the end. I can''t find any mention of these anywhere else - can anyone give me any pointers as to what these two things do? thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 26
0
setting default on "has_one" failure
...ge from the db? If it''s easier to send me link, then I''d happily read a page about what you can do to models, as I''m finding it difficult to do very much in the model pages. thanks dorian -- I do things for love or money -- +44 (0)7941 219 501 -- aim:oulalipo | yahoo:tachekent
2006 Jan 19
4
PHP ob_start in Ruby
I need to include Content-Length in each file. In PHP it would be: <?php ob_start(); ?> html <?php header(''Content-Length: '' . ob_get_length()); ob_end_flush(); ?> How can I do the same in Ruby? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Jun 03
1
after_create callback in subclass
I have a User model with a protected method defined: def set_role(rolename) role = Role.find_by_rolename(rolename) permission = Permission.new permission.role = role permission.user = self permission.save(false) end and a subclass with: after_create set_role(''client'') This always fails for me with the error: undefined method `set_role''
2009 Jun 11
1
fragment caching file_store problems
Hello, I''m having problems on both my production and development servers with fragment caching. Every time I try to cache something using <% cache do %>, I get the following error: Couldn''t create cache directory: views/0.0.0.0:3000/jobs/106/questions/ 174 (wrong number of arguments (2 for 1)) but strangely, all of the directories apart from the last one are created.
2009 Jun 23
0
roles, STI and convention
Hi, I have been using the restful_authentication plugin and the default roles setup that it came with. I have a system with 1 admin, 20-30 clients(customers) and 500+ users all of whom can login. I found that often when using certain role-based functions like user.has_role?, mysql would send an IN() query with the id of every user in the system (500+). This seemed a lot of overkill for what it was