search for: istoselidas

Displaying 6 results from an estimated 6 matches for "istoselidas".

2010 Apr 02
2
Rails and PHP app under the same domain
Hello I have a rails site in a domain like http://domain.com/ which is in one folder the whole application and a blog (wordpress - php application in another folder) under http://blog.domain.com/. How can I do http://domain.com/blog/ shows up the php application? Thank you! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2009 Oct 01
9
Strange problem with "and" - "&&"
Hello I have a strange problem with this code: <%unless (@students.empty? and params[:commit].nil?) %> <%="test"%> <%= render :partial => ''results'' %> <% end %> Even though in some cases @students.empty? returns false and params [:commit].nil? returns true (or the opposite), it displays the test and the render area. I put before and
2011 May 28
4
Rais 3, nested attributes problem with paperclip
I have two models, one model girl and one girl_photos (a file upload asset). The only code I have in models which describes the association is: For the girl => belongs_to :girl and has_attached_file :photo For the model girl_photos => has_many :girl_photos and accepts_nested_attributes_for :girl_photos I''ve tried to save as a nested attribute the photo, it saves the association
2010 Jan 09
5
Redirect 301 and cache
I want my rails app to redirect from no-WWW to WWW domain (for example if I enter example.com/test to redirect to www.example.com/test). I put the following code in the application controller and worked fine: before_filter :check_uri def check_uri if !/^www/.match(request.host) redirect_to request.protocol + "www." + request.host_with_port + request.request_uri, :status => 301
2010 Apr 26
11
Rails I18n
I was just wondering about locales and .yml files. Is it better to store the multilanguage strings in .yml files than in databases? And if yes, why? I was also wondering how rails are loading this files (for example, I have 4 languages in my web app, each has her own .yml file, will my rails app loads all the files in ram and then it will call each variable inside my web app? Or something else?)
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello I have a rails 3 app and I am trying to implement the redirect back action at access denied for cancan. If I try this in my application_controller: rescue_from CanCan::AccessDenied do |exception| redirect_to :back end It gives the following error: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure