similar to: current_path?

Displaying 20 results from an estimated 50000 matches similar to: "current_path?"

2011 Jul 11
39
Help filling out a registration (I think it's called multi tenant)
Do you know when you are filling out a registration for a new account, and you keep pressing next to fill the rest of the information in separate pages? I''d like to do that, but I have no idea how. Basically I have a company model with its information, and a contacts model, with belongs to my company (also each company has only one contact), and I''d like for the user to fill in
2011 Sep 21
5
bundle install rmagick error in unix
I have Rails 3 and Ruby 1.9.2 Installing rmagick (2.13.1) with native extensions /opt/local/lib/ruby/site_ruby/1.9/rubygems/installer.rb:551:in `rescue in block in build_extensions'': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /opt/local/bin/ruby19 extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for
2011 Sep 21
5
problem with submit button in rails 3
hi, i am using <%= s.submit ''Product save'' %> when i click it, following error appears " Routing Error uninitialized constant ProductsController" could any one provide me solution ? thanks, -pab -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2012 Feb 07
10
Encoding error
Hello, I have in my db a register what have special characters, and when I try to put on my form to edit this values, this happens: incompatible character encodings: UTF-8 and ASCII-8BIT Extracted source (around line #4): 1: <%= form_for :group, :url => { :action => "update" } do |f| %> 2: <%= utf8_enforcer_tag %> 3: <label>Nome do grupo</label>
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good resources (books or website) that go a little further than books like the railstutorial (which is excellent btw). But after reading this, I feel like as long as I''m working with scaffolding and simple gems, it''s ok, and a lot can be accomplished with this but I would like to have a deeper
2011 Nov 27
2
problem scraping using nokogiri - getting wrong characters
Hi all, I am scraping a table off of another site and inserting it onto my site. you can see an example on the initial page at: http://mthosts.heroku.com. I''m referring to the green box with the snowbird weather and snowfall information. this box has been scraped off of the snowbird site at: http://www.snowbird.com/ski_board/snowreport.php The problem is that on the snowbird site it
2011 Sep 18
9
Rails 3 and postgresql
I have a simple project created around a very, very simple database: one main table packs with just three rows Column | Type | Modifiers --------+-----------------------------+---------------------------------------------------- id | integer | not null default nextval(''packs_id_seq''::regclass) nombre | character
2012 May 31
14
How install libv8 (therubyracer) Windows 7
Hello, I have a problem when I try to add the gem therubyracer. I put in my prompt: bundle install, and this error appears: C:\rails\organily>bundle install Fetching gem metadata from https://rubygems.org/......... Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.3.6) Using activesupport (3.2.3) Using builder (3.0.0) Using activemodel (3.2.3) Using erubis (2.7.0) Using journey
2013 Jul 06
2
I thought Rails 3.2 ActionController automatically converts JSON params hashes...
Hey, I was thinking I''d have my controllers do double-duty: the same actions handling json and html requests differentially. For this, it''s useful that Rails 3.2 automatic params hash conversion from json work (as described here<http://guides.rubyonrails.org/v3.2.13/action_controller_overview.html#json-xml-parameters>in the Rails docs). (I''m using ruby 1.9.2.)
2013 Oct 23
3
Rails 4 and HABTM Checkboxes: Unpermitted parameters error
I have a simple Rails 4 project with two scaffolded models: Practice and Practitioner. I have set these both as habtm and am in the process of adding checkboxes to the Practitioner form so that I can check off the practices that this practitioner belongs to. In the practitioners_controller, I added practice_ids to the practitioner_params permit list, but I am still getting the error: Started
2011 Sep 08
10
Image upload with progress bar
Hello there, I try already third day to find a way, how to improve my upload about progress bar. I use for upload of images the paperclip gem and in my app jQuery library. Could anyone give me, please, any help or tip, how to do? I tried to search, read a discussions, but I still don''t know, how to do... So, thank you so much for every advice. -- Posted via
2011 Oct 26
4
How do I install ruby on rails on Windows 7
I''m a newb to programming. I heard about ruby on rails from some web design friends. I''ve been reading different "Why''s (poigrant) guide to ruby" and Finished Rails for Zombie in code school. I''ve download ruby 1.9.2 for window, but not sure what other software i need to get started. -- You received this message because you are subscribed to the
2011 Jul 26
1
ActiveRecord has_many associations
Given the models Country, State, City and Person as follows. class Country < ActiveRecord::Base has_many :states end class State < ActiveRecord::Base belongs_to :country has_many :cities end class City < ActiveRecord::Base belongs_to :state has_many :people end class Person < ActiveRecord::Base belongs_to :city end Is there any way that doesn''t allow to delete
2011 Sep 05
2
I’m crazy about rails
I’m crazy about rails. it is a so beautiful thing! I want to try my best to learn it well. anyone who can share some experience and resource. thanks -- 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
2013 Feb 28
1
how to use before_filter to decrypt post data
hello, everybody. in ror, we can add a after_filter to a controller. def aes_encrypt response.body = AesHelper.aes_encrypt(response.body) end after_filter :aes_encrypt and all action''s repsonse int the controller can be encrypt. and my question is , how to decrypt data use before_filter, or anything else. ex: i want to post json data to /usr/register, the json data is
2012 Jun 01
4
Is there a ftp crawler in ruby on rails?
Hi, I''m a newbie to ROR. I wanted to write some code which can help me to list and then index all the paths on a remote server. Is there a ftp server crawler in ruby? Thanks, Narayana -- Posted via http://www.ruby-forum.com/. -- 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
2011 Sep 24
1
How to transfer HTML data to a XML file
Hello friends, Can anyone please help me with transfering HTML data to a XML file. What I need to do is I need to extract the data from the text fields of the HTML form and then transfer this data to the proper tags of the XML file. Will appreciate your help!Thanks Regards Adi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google
2011 Oct 11
10
Create Two objects at the same time
I have user model and referral model. Referral model has user_id as field. Now when a new user is created, I need to call referral#create as well and pass it the id of the newly generated user to user_id of referral model. How can I do that. -- 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
2010 Jan 03
24
SQLServer on Rails
Does any one know how to setup SQLserver with ruby1.9. It was working on an earlier version and now nothing works! I have installed the gems dbi ,dbd-odbc and activerecord-odbc-adapter and can connect in straight Ruby. However, using rails with database.yml nothing works! I hosed everything and reinstalled rails and now, I get Win32/Parite virus on ruby.exe. Any ideas? I''m losing
2010 Sep 13
4
Installation and versioning issues
Ok, I''m new to Rails, and I was hoping to get some advice on how to get started. I''m coming from a .NET background, and from what I''ve seen of Rails, it looks perfect for a little web idea I had. So I got a book from the library and sat down to install it on my Ubuntu box. Immediately I hit versioning issues. - I installed ruby with apt-get and it gave me 1.8.7.