similar to: Url Port for Rails Instance

Displaying 20 results from an estimated 100000 matches similar to: "Url Port for Rails Instance"

2010 Nov 24
1
rails 3 cucumber load env
I already posted this on the cukes group but figure I would try here as well. Our prod app has an initializer that load up some constants for use in the app, no biggy. The issue is with rails 3 when I invoke cucumber it chokes not recognizing them even though it works fine in dev mode and prod mode. It obviously is processing the init file because I have a module that has some attributes inside
2012 Feb 27
1
I would like to create a Ruby on Rails server that will listen to a port to accept data from internet
Hi, I am building a server web application using Ruby on Rails 3 that will listen to a port to receive data from a remote client. The data is gps location which I will then post it on a map on the server web page. I had read about Ruby language socket programming. But how to implement this in rails? In the controller section? I had search the internet but I can''t find a step by step
2011 Sep 19
7
how to get instance variables in another action in rails 3
In my controller show method i have two instance variables which have large amount of data and take much time to fetch from remote system. shown below def show @graph = Koala::Facebook::GraphAPI.new(session[:fbuser] ["credentials"]["token"]) @friends = @graph.get_connections("me", "friends") @friends =@friends.to_a end in the same controller I
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2011 Sep 23
1
Rails 3.1.0 how to pass the full url of an image asset ?
I need to reference the full url of an image stored in the assets, this url is passed to fancy box to open it I build the image path in helper and it get the path "ceramics/big/c0d0.jpg" "ceramics/big/c0d2.jpg", ... but I need to get the full url to these image asset_path("ceramiques/big/c0d0.jpg") => "/assets/ceramiques/big/ c0d0.jpg" but there
2012 May 04
0
Why does Rails only save the joiner record in one instance but not another?
Assuming we have User, Account, and Role models, and a User has_many :accounts, through: :roles and vice-versa, with the following snippet Rails automatically creates the Role (joiner) record, but with the snippet after Rails will not. I think I''m misunderstanding how has_many through works, so I would appreciate any insight into the subject. def new @account =
2012 Mar 30
0
Facing probme with image upload rails 2.3.4, ruby 1.9.2 with papaerclip
I been working on image upload since long and every time working fine, Now since i deployed application on server,i am facing strange problem while image upload. When i am trying upload image it''s gives error like, NameError (undefined method path'' for classActionController::UploadedStringIO''): :10:in synchronize'' passenger (3.0.9)
2010 Feb 25
0
Rails problems running rake and other tasks - undefined method `action_controller'
I suddenly have a major problem in all my Rails 3 apps: $ rake db:migrate --trace rake aborted! Don''t know how to build task ''db:migrate'' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:1728:in `[]'' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2050:in `invoke_task''
2012 Mar 04
4
How to retrieve a FileBlob from 'ActionDispatch::Http::UploadedFile' instance?
I have used ''remotipart'' gem to upload files asynchronously to server side. The instance passed to the server side is of ''UploadedFile'' . The Rails API mentions all the methods( like read(), open() ) and attributes for the class, however I am not sure how to retrieve the File and store it on the database. The documentation hardly says anything. Googling
2010 May 12
2
How to add an after_save callback on runtime on a particular instance
class User < AR end user = User.new Let''s say that I have a user instance with me. After this record is saved I want an after_save callback which would print the id of the record. The only catch is that I am not allowed to change the User class. How can I accomplish my goal? Is that even possible to add an after_save callback on a particular instance object. Any metaprogramming
2013 Oct 07
3
Get current url
Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env[''HTTP_HOST''] and now i want get current url in environment.rb file or intializer folder files Regards, Daya. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from
2013 Mar 11
8
Access instance variable in ajax rendered by controller - Rails
I am making an ajax call to my controller. Controller is sending in the response in an instance variable(as a json object). How can I access the same in my ajax javascript? This is my ajax call code: $(document).ready(function(){ var currentCellText; $(".inline").click(function() { currentCellText = $(this).text(); $.ajax({ type: ''GET'', dataType: "json",
2011 Feb 08
2
Rails + WordPress.org + Nginx = HELP
Running a rails app with Nginx and trying to add wordpress.org in as either a subdomain or subdirectory with same URL. Is this possible? Would running Rails and WP on different servers help? Found plenty of documentation with Apache, but Nginx lacking. Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2011 Jun 23
2
getting twitter followers into our rails application
Hi everybody, I have integrated OAuth into my app. Now I want to get the follower lists for the user who has authenticated using OAuth. My app works on ruby on rails. And i want to know how i can fetch the followers list for the current logged in user. Can someone tell me if they have done it before? thaks +++++++++++++++ Pravin Mishra -- You received this message because you are subscribed
2009 Dec 07
1
problem starting rails (hobo) app with passenger
Dear All! I''ve set up my apache, passenger and configs, the passenger works, but the app can''t be started. the erros are the following These are the possible causes: * There may be a syntax error in the application''s code. Please check for such errors and fix them. * A required library may not installed. Please install all libraries that this
2010 Apr 19
3
which views are rendered for an URL
Hi, Is there a way I can figure out which files are run for a specific URL? Given http://www.planet.com/countries files like: countries/ index.html.erb, countries/_country.html.erb, layouts/ application.html.erb and so on. Thank You -- M. -- 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 Oct 12
4
How to access controller's instance variable in a js.erb loaded by javascript_include_tag?
Hello! In rails 3.1 app I have a controller UsersController with ''show'' action. show.html.erb contains: <% content_for(:head) do %> <%= javascript_include_tag ''myscript'' %> <% end %> <p>Hello @user.name</p> And I have this in myscript.js.erb $jQuery(document).ready(function() { alert(<%= @user.name %>); }); @user is being
2011 Feb 15
5
Path and Url
Hello everyone, what''s the real difference between root_url and root_path in Rails, for example. Apparently both lead to the same route in the application. 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
2010 Feb 07
4
rails 3 script/server problem
I installed Rails 3 beta, created a new rails 3 app, and tried to run it but am getting this error when running script/server: Cannot find gem for Rails =1.2.6.0 Do I need to install an earlier version of rails to have a running rails 3 app? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2012 Sep 10
4
Rails error: invalid byte sequence in UTF-8
Hello, i have a app on rails 3.2.1 and i use a jquery lib called jQuery Timelinr 0.9.5: http://www.csslab.cl/2011/08/18/jquery-timelinr/ but, when i use it on a .erb view, i got a error: Showing * /home/carlos.ribeiro/projetos/amarribo/app/views/conheca/historico.html.erb* where line *#59* raised: invalid byte sequence in UTF-8 Extracted source (around line *#59*): 57: 58: <%=