Displaying 12 results from an estimated 12 matches for "pankowecki".
2010 Sep 10
10
current_page? inside controller
...my controller that would look like
this:
class AddressesController
def index
if current_page?(live_addresses_path)
# ... logic goes here
elsif current_page?(addresses_path)
# ... logic goes here
end
end
end
What''s the easiest way of achieving it ?
Robert Pankowecki
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/J...
2011 Feb 28
4
best_standards_support
...h.best_standards_support if
config.action_dispatch.best_standards_support
What''s the point of setting action_dispatch.best_standards_support to
Symbol when we only care whether it is true or false ?
Do we expect that in future there will be other possible values for
this setting ?
Robert Pankowecki
--
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 unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
For more options...
2010 Oct 02
2
How to write a test hash for a nested form??
How to write a hash for a nested form??
Example form fields (main model is Practice, nested is User):
practice[name]
practice[users_attributes][0][email]
I want to do this:
post:
post :create, :practice => { :name => "any name", :users_attributes => {
:0 => { :email => "anyone-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" } } }
The issue is that I can not create
2011 Mar 29
18
Rails 3.0.6.rc1
ZOMG HAPPY TUESDAY (UTC-7)!!! <3<3<3<3<3
I am happy to announce that the first release candidate for Rails 3.0.6 has
been pushed to rubygems.org.
## Release Candidate: What does it mean?
The release candidate is very similar to what we will actually release for
version 3.0.6. The reason that we release an RC is so that the community can
have a chance to postpone or veto commits
2011 May 30
3
Alternative I18n convention for namespaced models
https://github.com/rails/rails/issues/1402
Can we expect support for that in Rails 3.1.0 ?
Robert Pankowecki
--
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 unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
For more options...
2011 Feb 04
5
Date parse - month and day reversed
I am getting the month and day reversed in parsing a date. I am wondering if
there is some intelligence in Ruby that knows that at the moment I am in
Mexico, as the parsing is working as if I was
"6/15/2008".to_date
=> ArgumentError: invalid date
"15/6/2008".to_date
=> Sun, 15 Jun 2008
What I really want is my date to be understood as month/day/year. Is there a
way to
2010 Sep 16
3
Resyful authenticatio current_user in model
Hi,
I am using Restful authentication for user authentication.
I want the current logged in user object in my model property.rb
Problem is current_user is not working on model.
How can I fix this I need that?
Please help me out.
Thanks,
Mike
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2012 Sep 19
7
Renaming Journey and avoiding libraries with common noun names
Hi all,
I know this is a long shot, but could renaming the "Journey" module please
be considered by those in a position to support it?
I''ve written an issue on this in the journey repo also:
https://github.com/rails/journey/issues/49
Essentially our project has a model named Journey, the same as Rails 3.2''s
new routing driver. As a consequence we can no longer
2010 Aug 05
5
asset_host and ActionMailer
After digging through the rails code to figure out why my asset_host
wasn''t getting applied to emails, I realized that it''s because the
config object in the context of a mailer is config.action_mailer and
not config.action_controller. This means you need to set asset host
separately for emails, as config.action_mailer.asset_host.
Should this be considered a bug? Is it really
2011 Mar 04
8
rake issues
Is there any reason why db:setup and db:reset don''t show any more on
"rake -T db"?
I guess any rake task that is defined only as a group of other tasks
(without any ruby blocks attached) presents this problem.
Also let me write this as a remember note to myself for when I have some
time: the Rails Guides on Migrations should be updated to include
instructions about db:load
2011 Feb 20
6
Link_to frustration...help?
I have a resource ''users''. the index page has a ''link_to'' tag I
created on the line item level for a specific view. The link_to that
is frustrating me in particular says: <%= link_to ''View'', :controller
=> ''users'', :action => ''view'' %>
What''s happening is that it''s going to
2010 Sep 09
17
formtastic issue
Hello,
I will try to explain it step by step :-)
I just created a new rails 3 app, then I created a new controller...
rails generate controller admin::users
I didn''t forget to add the resources in the routes.rb file like this.
namespace :admin do
resources :users
end
Now I try to use formtastic to create the form but I get erorr that my
users_path doesn''t exist?