Monday, December 31, 2012
Re: [Rails] Help with has_many through association
> As a user, I can add my favorite book to my book list.
> Another user adds the same book to their book list.
>
> There should only be one instance of the book in the database but 2
> user/book associations.
When someone wants to add their favorite, check the database to see if
it exists. What's the problem?
-Dave
--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Refresh tabs for every 5 minutes
> I have a four tabs along with the menus in the left hand side. on
> clicking each tab will populate corresponding data in the table.I need
> to write a ajax method to refresh each tabs for every 5 minutes. Can
> someone help with an example.
http://www.w3schools.com/jsref/met_win_setinterval.asp
I am assuming you know how to make a AJAX call. The above will explain
how to set an interval to call your function periodically.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Integration of excel file with Paperclip
> Hello,
> I am working on rails project and I want to send mail those person whose
> name I have uploaded in excel file and their photos through paperclip.And my
> mail format is on their anniversary automatic mail send by application and
> mail contain his/her photo as well as information regarding that particular
> one from excel sheet .
Look at the spreadsheet gem for reading excel files.
Colin
>
> I am stuck with it,it is possible or not?
>
> Thank you in advance!!!
>
> Aurick
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/AsTgLyDDFZoJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Integration of excel file with Paperclip
On Monday 31 December 2012 at 10:48 AM, Aurick wrote:
Hello,I am working on rails project and I want to send mail those person whose name I have uploaded in excel file and their photos through paperclip.And my mail format is on their anniversary automatic mail send by application and mail contain his/her photo as well as information regarding that particular one from excel sheet .I am stuck with it,it is possible or not?Thank you in advance!!!Aurick--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/AsTgLyDDFZoJ.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Refresh tabs for every 5 minutes
clicking each tab will populate corresponding data in the table.I need
to write a ajax method to refresh each tabs for every 5 minutes. Can
someone help with an example.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: Re: Re: How do I send session id other than from cookie.
Instead of adding a session parameter to every url_for call, alias method chain it. any url helper calls url_for anyway, so you're good.Make sure the encryption is good with the session id, and don't use weak ones like base64, they make session spoofing so much easier.--Dheeraj KumarOn Monday 31 December 2012 at 3:49 PM, Rajarshi wrote:
url_for(:controller => "name of the controller", :action => "name pf the aciont", :session => params[:value])
or
users_url(:session => params[:value])
it will create a dybnamic url like /users?session="sdsadsadasdas213213213"
and in params[:value] you have to encrypt the session id what you get from database
or encode64(params[:value])
now while it i s hitting it will send the request in that reuqest you have to parse it by decode64() and match the session id
On Mon, Dec 31, 2012 at 2:10 PM, Rajesh KT <lists@ruby-forum.com> wrote:Dheeraj Kumar wrote in post #1090693:
> I just said what you need. chain the url_for method to add session id toThanks Dheeraj. Truly appreciate if you can point me to some code
> the parameters, and read the session id in your application controller,
> look it up in your session store, active record or memcache, then load
> whatever information you want from the database.
>
> --
> Dheeraj Kumar
examples for this.
Thanks
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: Re: Re: How do I send session id other than from cookie.
On Monday 31 December 2012 at 3:49 PM, Rajarshi wrote:
url_for(:controller => "name of the controller", :action => "name pf the aciont", :session => params[:value])
or
users_url(:session => params[:value])
it will create a dybnamic url like /users?session="sdsadsadasdas213213213"
and in params[:value] you have to encrypt the session id what you get from database
or encode64(params[:value])
now while it i s hitting it will send the request in that reuqest you have to parse it by decode64() and match the session id
On Mon, Dec 31, 2012 at 2:10 PM, Rajesh KT <lists@ruby-forum.com> wrote:Dheeraj Kumar wrote in post #1090693:
> I just said what you need. chain the url_for method to add session id toThanks Dheeraj. Truly appreciate if you can point me to some code
> the parameters, and read the session id in your application controller,
> look it up in your session store, active record or memcache, then load
> whatever information you want from the database.
>
> --
> Dheeraj Kumar
examples for this.
Thanks
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: Re: Re: How do I send session id other than from cookie.
or
users_url(:session => params[:value])
it will create a dybnamic url like /users?session="sdsadsadasdas213213213"
and in params[:value] you have to encrypt the session id what you get from database
or encode64(params[:value])
now while it i s hitting it will send the request in that reuqest you have to parse it by decode64() and match the session id
Dheeraj Kumar wrote in post #1090693:
> I just said what you need. chain the url_for method to add session id toThanks Dheeraj. Truly appreciate if you can point me to some code
> the parameters, and read the session id in your application controller,
> look it up in your session store, active record or memcache, then load
> whatever information you want from the database.
>
> --
> Dheeraj Kumar
examples for this.
Thanks
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Re: Re: Re: Re: How do I send session id other than from cookie.
> I just said what you need. chain the url_for method to add session id to
> the parameters, and read the session id in your application controller,
> look it up in your session store, active record or memcache, then load
> whatever information you want from the database.
>
> --
> Dheeraj Kumar
Thanks Dheeraj. Truly appreciate if you can point me to some code
examples for this.
Thanks
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] git push heroku master error
heroku supportpostgrel
for that you have to use"pg" gemin your genfile chnage itgem "pg"then commit and git push heroku masterafter that you have to get the username password and databae name from herokuOn Sat, Dec 29, 2012 at 12:31 AM, Javier Quarite <jquarites@gmail.com> wrote:
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue <lists@ruby-forum.com> wrote:
An error occurred while installing sqlite3 (1.3.6), and Bundler
cannot co
ntinue.
Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before
bundling.Heroku doesn't support sqliteTry this guide http://railsapps.github.com/rails-heroku-tutorial.html(or maybe post your Gemfile)Javier--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] git push heroku master error
for that you have to use
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue <lists@ruby-forum.com> wrote:
An error occurred while installing sqlite3 (1.3.6), and Bundler
cannot co
ntinue.
Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before
bundling.Heroku doesn't support sqliteTry this guide http://railsapps.github.com/rails-heroku-tutorial.html(or maybe post your Gemfile)Javier--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: Re: How do I send session id other than from cookie.
On Monday 31 December 2012 at 1:44 PM, Rajarshi wrote:
you can send encrypted session id for thatyour url should be like /users?session_id='dasdadasdas2313124213213_session_application" with encrypted session idnow after getting request you have to decrypt the sessionuse base64 for it--On Mon, Dec 31, 2012 at 1:15 PM, Rajesh KT <lists@ruby-forum.com> wrote:Dheeraj Kumar wrote in post #1090690:
> It's not secure, session spoofing is a serious issue. I would encouragePlease suggest which route to follow, in order to make application work
> not going that route.
>
> It can be done in rails, needs a bit of work but sure. Ideally, you'll
> alias_method_chain url_for and read the session in a parent controller,
> like ApplicationController and initialize your current user and any
> other session information from that.
>
> --
> Dheeraj Kumar
even though cookies are disabled in the browser.
Thanks in advance for any help in this line.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: Re: How do I send session id other than from cookie.
Dheeraj Kumar wrote in post #1090690:
> It's not secure, session spoofing is a serious issue. I would encouragePlease suggest which route to follow, in order to make application work
> not going that route.
>
> It can be done in rails, needs a bit of work but sure. Ideally, you'll
> alias_method_chain url_for and read the session in a parent controller,
> like ApplicationController and initialize your current user and any
> other session information from that.
>
> --
> Dheeraj Kumar
even though cookies are disabled in the browser.
Thanks in advance for any help in this line.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, December 30, 2012
[Rails] Re: Re: Re: Re: How do I send session id other than from cookie.
> It's not secure, session spoofing is a serious issue. I would encourage
> not going that route.
>
> It can be done in rails, needs a bit of work but sure. Ideally, you'll
> alias_method_chain url_for and read the session in a parent controller,
> like ApplicationController and initialize your current user and any
> other session information from that.
>
> --
> Dheeraj Kumar
Please suggest which route to follow, in order to make application work
even though cookies are disabled in the browser.
Thanks in advance for any help in this line.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: Re: How do I send session id other than from cookie.
On Monday 31 December 2012 at 12:52 PM, Rajesh KT wrote:
Shiv Narayan Gautam wrote in post #1090687:Try passing it in the URL. Read more about URL rewriting in case ofdisabled cookies.It has some disadvantages.--ShivCan this be done in Ruby on Rails? I am aware that it works for JSP andPHP.--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 rubyonrails-talk@googlegroups.com.To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Re: Re: How do I send session id other than from cookie.
> Try passing it in the URL. Read more about URL rewriting in case of
> disabled cookies.
>
> It has some disadvantages.
> http://www.javapractices.com/topic/TopicAction.do?Id=226
>
> --
> Shiv
Can this be done in Ruby on Rails? I am aware that it works for JSP and
PHP.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: How do I send session id other than from cookie.
On Monday 31 December 2012 at 12:43 PM, Rajesh KT wrote:
Rajarshi wrote in post #1090684:you can use many option1. memcache to store session in server2.Activerecord to store session id in database so no need of yourbrowsermany othersI am using Activerecord only to store the session, but in some wayclient has to send that session ID to server to retrieve the logged-insession data, otherwise each time server will create a new session ID.Right?--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 rubyonrails-talk@googlegroups.com.To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: How do I send session id other than from cookie.
Rajarshi wrote in post #1090684:
> you can use many optionI am using Activerecord only to store the session, but in some way
> 1. memcache to store session in server
> 2.Activerecord to store session id in database so no need of your
> browser
>
> many others
client has to send that session ID to server to retrieve the logged-in
session data, otherwise each time server will create a new session ID.
Right?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Re: How do I send session id other than from cookie.
> you can use many option
> 1. memcache to store session in server
> 2.Activerecord to store session id in database so no need of your
> browser
>
> many others
I am using Activerecord only to store the session, but in some way
client has to send that session ID to server to retrieve the logged-in
session data, otherwise each time server will create a new session ID.
Right?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: How do I send session id other than from cookie.
1. memcache to store session in server
2.Activerecord to store session id in database so no need of your browser
many others
Rajarshi wrote in post #1090682:
> Session is like an hash to store data with an application request.Thanks Rajarshi for your reply!
>
> It should work if you store a session while login like
> session[:user]="Myname_123"
> it will renmain in the application until or unless you make it nil
> session[:user]=nil
>
> it is versy simple in consept
>
> now session id it is identification of an particular session
>
> and browser you know I use session in android emulator
>
> now your turn
But that's not my question is - let me put in other way:
If I am using sessionstore, the _session_id has to be passed through
browser cookie. Now, If I disable cookie in the browser the entire
system doesn't work. So, what is the other alternative I can pass the
session id through? if cookie is disabled.
Tried passing as request parameter, but that doesn't work. Any
suggestion plese?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: How do I send session id other than from cookie.
> Session is like an hash to store data with an application request.
>
> It should work if you store a session while login like
> session[:user]="Myname_123"
> it will renmain in the application until or unless you make it nil
> session[:user]=nil
>
> it is versy simple in consept
>
> now session id it is identification of an particular session
>
> and browser you know I use session in android emulator
>
> now your turn
Thanks Rajarshi for your reply!
But that's not my question is - let me put in other way:
If I am using sessionstore, the _session_id has to be passed through
browser cookie. Now, If I disable cookie in the browser the entire
system doesn't work. So, what is the other alternative I can pass the
session id through? if cookie is disabled.
Tried passing as request parameter, but that doesn't work. Any
suggestion plese?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] How do I send session id other than from cookie.
It should work if you store a session while login like session[:user]="Myname_123"
it will renmain in the application until or unless you make it nil
session[:user]=nil
it is versy simple in consept
now session id it is identification of an particular session
and browser you know I use session in android emulator
now your turn
My requirement is to make a controller method to be able to accept
session id from cookie, if it is disabled/not available then from
request body.
This way I will return a session id from login request and use the same
session_id for any subsequent request body, if it's not a browser
request.
Will this work?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Integration of excel file with Paperclip
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/AsTgLyDDFZoJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Help with has_many through association
- As a user, I can add my favorite book to my book list.
- Another user adds the same book to their book list.
There should only be one instance of the book in the database but 2 user/book associations.
Any help would be amazing!
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8xReZsFy1_cJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: uninitialized constant UgloungeSkills (NameError)
On Saturday, December 29, 2012 9:34:43 PM UTC, wnt2bsleepin wrote:
Hello, I am having a hard time using a model I created. I am trying to call
the object from a class in the lib directory. This class is going to run on
a schedule with clockwork to repopulate a database. However, I can't seem to
access the model.
--
--
View this message in context: http://ruby.11.n6.nabble.com/uninitialized-constant- UgloungeSkills-NameError- tp4985745.html
Sent from the RubyOnRails Users mailing list archive at Nabble.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GEqPZZRZBGoJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] How do I send session id other than from cookie.
session id from cookie, if it is disabled/not available then from
request body.
This way I will return a session id from login request and use the same
session_id for any subsequent request body, if it's not a browser
request.
Will this work?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Saturday, December 29, 2012
[Rails] Re: CSRF tokens for mobile apps
On Sunday, 20 May 2012 19:26:08 UTC-4, Anish wrote:
I have an existing rails backend website which makes json ajax calls to my server and I was passing csrf tokens in every ajax call. Now,I am developing a mobile iOS app to use the same backend and send calls in json. However, mobile requests are failing with "Can't verify CSRF token authenticity", because i dont know of anyway to send the csrf token to rails from app.
Looking around, many people are suggesting to disable CSRF protection if the call is json call - but I dont want to do that because my website all uses json calls and that leaves my site open for attacks.
My question is:
1) How can i let my iOS app know the rails generated csrf token to use it in all app calls to server? Is it possible
2) Is there any other way that I can work around this problem?
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/RdU4jgc9qroJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] uninitialized constant UgloungeSkills (NameError)
the object from a class in the lib directory. This class is going to run on
a schedule with clockwork to repopulate a database. However, I can't seem to
access the model.
Here <http://pastebin.com/8TiB7hTX> is the object that is trying to call
the model. Any help is appreciated.
--
View this message in context: http://ruby.11.n6.nabble.com/uninitialized-constant-UgloungeSkills-NameError-tp4985745.html
Sent from the RubyOnRails Users mailing list archive at Nabble.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: installing ruby 1.9.3 in michael hartl's ruby on rails tutorial
On Friday, December 28, 2012 1:30:05 PM UTC-5, Adam Zerner wrote:
--I'm working on Michael Hartl's ruby on rails tutorial http://ruby.
railstutorial.org/ruby-on- .rails-tutorial-book#sec- development_tools I installed Git, updated my OS to 10.8.2 and downloaded XCode 4.5.2.
when I type in
rvm install 1.9.3this long thing comes up...
Ruby (and needed base gems) for your selection will be installed shortly. Before it happens, please read and execute the instructions below. Please use a separate terminal to execute any additional commands. Notes for Mac OS X 10.8.2, Xcode 4.5.2. For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26" For IronRuby: Install Mono >= 2.6 For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba' For Opal: Install Nodejs with NPM. See http://nodejs.org/download/ To use an RVM installed Ruby as default, instead of the system ruby: rvm install 1.8.7 # installs patch 357: closest supported version rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems rvm alias create default 1.8.7 And reopen your terminal windows. Xcode and gcc: Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was /usr/bin/gcc-4.2. Xcode 4.1 and earlier: - Ruby will build fine. Xcode 4.2 and later (including Command Line Tools for Xcode): - If you have gcc-4.2 (and friends) from an earlier Xcode version, Ruby will build fine. - If you don't have gcc-4.2, you have two options to get it: * Install apple-gcc42 from Homebrew * Install osx-gcc-installer Homebrew: If you are using Homebrew, you can install the apple-gcc42 and required libraries from homebrew/dupes: brew update brew tap homebrew/dupes brew install autoconf automake apple-gcc42 rvm pkg install openssl Xcode 4.2+ install or/and Command Line Tools for Xcode is required to provide make and other tools. osx-gcc-installer: If you don't use Homebrew, you can download and install osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer . Warning: Installing osx-gcc-installer on top of a recent Xcode is known to cause problems, so you must uninstall Xcode before installing osx-gcc-installer. Afterwards you may install Xcode 4.2+ or Command Line Tools for Xcode if you desire. ** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. The only fix is to install Xcode over osx-gcc-installer. Press 'q' to continue. ~ (END) Originally I had to get homebrew and
brew install libksbabut I did that already and it works. That leads to "Xcode and gcc:" and everything below it.
So, I have homebrew, and the following three commands work:
brew update brew tap homebrew/dupes brew install autoconf automake apple-gcc42But when I try
rvm pkg install opensslthis is what happens
Fetching openssl-1.0.1c.tar.gz to /Users/adamzerner/.rvm/archives Extracting openssl to /Users/adamzerner/.rvm/src/ openssl-1.0.1c Configuring openssl in /Users/adamzerner/.rvm/src/ openssl-1.0.1c. Compiling openssl in /Users/adamzerner/.rvm/src/ openssl-1.0.1c. Error running 'make', please read /Users/adamzerner/.rvm/log/ openssl/make.log Please note that it's required to reinstall all rubies: rvm reinstall all --force Updating openssl certificates Error running 'update_openssl_certs', please read /Users/adamzerner/.rvm/log/ openssl.certs.log And this is what happens when I try what it says...
Adam-Zerners-MacBook-Pro:~ adamzerner$ rvm reinstall all --force Adam-Zerners-MacBook-Pro:~ adamzerner$some other information...
I don't see a .rvm folder under adamzerner, so I can't read what it tells me to (not that I would understand what I'd be reading anyway).
It seems that I have 1.8.7 installed:
Adam-Zerners-MacBook-Pro:~ adamzerner$ ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]So... to summarize... when I try to run
rvm install 1.9.3I get the gcc/Xcode problem. To fix that it says to download apple-gcc42 from Homebrew. When I do that, I get a problem after doing
rvm pkg install opensslThe problem being that I need to reinstall all rubies. When I do that:
rvm reinstall all --forceit seems that nothing happens.
Thanks in advance to anyone willing to help me with this problem!
EDIT: I forgot to say this before. For the "long thing" up above, when I press q to continue, this is what happens...
Searching for binary rubies, this might take some time. https://rvm.io/binaries/osx/10.8/x86_64/ruby-1.9.3-p327. - #configure ruby-1.9.3-p327 - #download ruby-1.9.3-p327 - #extract ruby-1.9.3-p327 - #validate Libraries missing for ruby-1.9.3-p327: env. Refer to your system manual for installing libraries Mounting remote ruby failed, trying to compile. Fetching yaml-0.1.4.tar.gz to /Users/adamzerner/.rvm/tar.bz2 archives Extracting yaml to /Users/adamzerner/.rvm/src/ yaml-0.1.4 Configuring yaml in /Users/adamzerner/.rvm/src/ yaml-0.1.4. Error running './configure --prefix=/Users/adamzerner/. rvm/usr', please read /Users/adamzerner/.rvm/log/ ruby-1.9.3-p327/yaml/ configure.log Compiling yaml in /Users/adamzerner/.rvm/src/ yaml-0.1.4. Error running 'make', please read /Users/adamzerner/.rvm/log/ ruby-1.9.3-p327/yaml/make.log Installing Ruby from source to: /Users/adamzerner/.rvm/rubies/ ruby-1.9.3-p327, this may take a while depending on your cpu(s)... ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection... ruby-1.9.3-p327 - #extracted to /Users/adamzerner/.rvm/src/ ruby-1.9.3-p327 (already extracted) ruby-1.9.3-p327 - #configuring Error running './configure --enable-shared --disable-install-doc --prefix=/Users/adamzerner/. rvm/rubies/ruby-1.9.3-p327 --with-opt-dir=/Users/ adamzerner/.rvm/usr', please read /Users/adamzerner/.rvm/log/ ruby-1.9.3-p327/configure.log There has been an error while running configure. Halting the installation.
what happens when yousudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gccand re run the ruby install? – Oliver Atkinson Dec 25 at 10:35<td class="comment-text" style="padding: 5px 6px 5px 7px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(221, 221, 221); ...
Show original
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/FEAucvbrinUJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Thinking Sphinx can't find Sphinx.
surely work fine
development:
version: '2.0.11'
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Thinking Sphinx can't find Sphinx.
surely work fine
development:
version: '2.0.11'
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] no metadata found in activereocrd-3.2.9.gem when running bundle install in a rails 3.2.9
gem::package::FormatError: no metadata found in D:/RailsInstaller/Ruby1.9.3/bin/cashe/activereocrd-3.2.9.gem and error occurrend while installing activerecord (3.2.9), and bubndler cannot continue. Make sure that gem install activerecord -v '3.2.9' succeeds before building. I tried to run the gem install activerecord..as instructed still bundle install does not work and i cannot run the rails server. (rails s)
When changing the rails version in the app gem file to 3.2.8 instead of 3.2.9 everything seems to work and the rails server runs succefully. What is wrong?
--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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/67bX1J2WLeYJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Searching database in Rails with multiple optional parameters
I have a Rails app with following schema:
User (id, username, user_type, master_id) Item ( id,itemname,master_id) Repairs (id, in_date, out_date, user_id, item_id)
The app is small so I have tried keeping db as simple as possible. A user can be Admin, Dealer or Manager. A manager can have many dealers under him(Both stored in same user table).
An Item can be a 'master item' like a computer(with many sub items like keyboard,mouse) or it can be just a small sub item. So a master item can have many sub items under it.
A repair is Repair history for item. A repair has an item and user associated with it.
I have a search for with following parameters ( ALl optional)
- Manager Name
- Dealer Name
- Master Item
- Sub Item
- In date
- Out date
If no 'Dealer Name' is specified I want results to have all Dealers under the specified 'manager name' included in results, if no 'Sub Item' is specified I want all items under 'Master Item' to be in the results.
How should the search controller be defined so as to keep code simple and maintainable? I dont really want to do an 'if' for each condition.
--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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/QkZv7_s2VX4J.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: CSRF tokens for mobile apps
https://github.com/mkristian/ixtlan-translations/blob/master/app/controllers/local_controller.rb
that is the controller I use as base for my controllers talking to rest-clients (GWT applications)
- Kristian
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/PAz1kFJmPz4J.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, December 28, 2012
[Rails] Re: CSRF tokens for mobile apps
Using <%= form_authenticity_token %> doesn't work because you don't have
a server to dynamically insert content into html as an app is static and
packaged on the client device (iPhone/iPad).
CSRF should not be a possible attack inside of an app. Your session is
isolated to the app and cross domain origin policies in the browser will
prevent the attack. Also, since you are using an app you can implement
sessions without the use of cookies entirely.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: collection_select change name
<%= collection_select(:question , :text, Question.all , :id, :text,
{:prompt => 'Select Question...'}, {:class=>'input', :name=>'normalSelect'}) %>On Saturday, December 29, 2012 10:15:33 AM UTC+6:30, D2M wrote:
Dear All.--
I use this code for my project,
<%= collection_select(:zone_id , :name, @zones, :id, :name,{},{:name=>'normalSelect'}) %>
with this. ruby on rails define default name and id.
Can i change default name to my custom name.
Regards,
D2M
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/T24iIbWQqIsJ.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] collection_select change name
I use this code for my project,
<%= collection_select(:zone_id , :name, @zones, :id, :name,{},{:name=>'normalSelect'}) %>
with this. ruby on rails define default name and id.
Can i change default name to my custom name.
Regards,
D2M
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1PfEwf5A3UkJ.
For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] installing ruby 1.9.3 in michael hartl's ruby on rails tutorial
On Dec 28, 2012, at 1:30 PM, Adam Zerner <azerner3@gmail.com> wrote:
--I'm working on Michael Hartl's ruby on rails tutorial http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-development_tools.
I installed Git, updated my OS to 10.8.2 and downloaded XCode 4.5.2.
when I type in
rvm install 1.9.3this long thing comes up...
Ruby (and needed base gems) for your selection will be installed shortly. Before it happens, please read and execute the instructions below. Please use a separate terminal to execute any additional commands. Notes for Mac OS X 10.8.2, Xcode 4.5.2. For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26" For IronRuby: Install Mono >= 2.6 For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba' For Opal: Install Nodejs with NPM. See http://nodejs.org/download/ To use an RVM installed Ruby as default, instead of the system ruby: rvm install 1.8.7 # installs patch 357: closest supported version rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems rvm alias create default 1.8.7 And reopen your terminal windows. Xcode and gcc: Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was /usr/bin/gcc-4.2. Xcode 4.1 and earlier: - Ruby will build fine. Xcode 4.2 and later (including Command Line Tools for Xcode): - If you have gcc-4.2 (and friends) from an earlier Xcode version, Ruby will build fine. - If you don't have gcc-4.2, you have two options to get it: * Install apple-gcc42 from Homebrew * Install osx-gcc-installer Homebrew: If you are using Homebrew, you can install the apple-gcc42 and required libraries from homebrew/dupes: brew update brew tap homebrew/dupes brew install autoconf automake apple-gcc42 rvm pkg install openssl Xcode 4.2+ install or/and Command Line Tools for Xcode is required to provide make and other tools. osx-gcc-installer: If you don't use Homebrew, you can download and install osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer. Warning: Installing osx-gcc-installer on top of a recent Xcode is known to cause problems, so you must uninstall Xcode before installing osx-gcc-installer. Afterwards you may install Xcode 4.2+ or Command Line Tools for Xcode if you desire. ** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. The only fix is to install Xcode over osx-gcc-installer. Press 'q' to continue. ~ (END)Originally I had to get homebrew and
brew install libksbabut I did that already and it works. That leads to "Xcode and gcc:" and everything below it.
So, I have homebrew, and the following three commands work:
brew update brew tap homebrew/dupes brew install autoconf automake apple-gcc42But when I try
rvm pkg install opensslthis is what happens
Fetching openssl-1.0.1c.tar.gz to /Users/adamzerner/.rvm/archives Extracting openssl to /Users/adamzerner/.rvm/src/openssl-1.0.1c Configuring openssl in /Users/adamzerner/.rvm/src/openssl-1.0.1c. Compiling openssl in /Users/adamzerner/.rvm/src/openssl-1.0.1c. Error running 'make', please read /Users/adamzerner/.rvm/log/openssl/make.log Please note that it's required to reinstall all rubies: rvm reinstall all --force Updating openssl certificates Error running 'update_openssl_certs', please read /Users/adamzerner/.rvm/log/openssl.certs.logAnd this is what happens when I try what it says...
Adam-Zerners-MacBook-Pro:~ adamzerner$ rvm reinstall all --force Adam-Zerners-MacBook-Pro:~ adamzerner$some other information...
I don't see a .rvm folder under adamzerner, so I can't read what it tells me to (not that I would understand what I'd be reading anyway).
It seems that I have 1.8.7 installed:
Adam-Zerners-MacBook-Pro:~ adamzerner$ ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]So... to summarize... when I try to run
rvm install 1.9.3I get the gcc/Xcode problem. To fix that it says to download apple-gcc42 from Homebrew. When I do that, I get a problem after doing
rvm pkg install opensslThe problem being that I need to reinstall all rubies. When I do that:
rvm reinstall all --forceit seems that nothing happens.
Thanks in advance to anyone willing to help me with this problem!
EDIT: I forgot to say this before. For the "long thing" up above, when I press q to continue, this is what happens...
Searching for binary rubies, this might take some time. https://rvm.io/binaries/osx/10.8/x86_64/ruby-1.9.3-p327.tar.bz2 - #configure ruby-1.9.3-p327 - #download ruby-1.9.3-p327 - #extract ruby-1.9.3-p327 - #validate Libraries missing for ruby-1.9.3-p327: env. Refer to your system manual for installing libraries Mounting remote ruby failed, trying to compile. Fetching yaml-0.1.4.tar.gz to /Users/adamzerner/.rvm/archives Extracting yaml to /Users/adamzerner/.rvm/src/yaml-0.1.4 Configuring yaml in /Users/adamzerner/.rvm/src/yaml-0.1.4. Error running './configure --prefix=/Users/adamzerner/.rvm/usr', please read /Users/adamzerner/.rvm/log/ruby-1.9.3-p327/yaml/configure.log Compiling yaml in /Users/adamzerner/.rvm/src/yaml-0.1.4. Error running 'make', please read /Users/adamzerner/.rvm/log/ruby-1.9.3-p327/yaml/make.log Installing Ruby from source to: /Users/adamzerner/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)... ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection... ruby-1.9.3-p327 - #extracted to /Users/adamzerner/.rvm/src/ruby-1.9.3-p327 (already extracted) ruby-1.9.3-p327 - #configuring Error running './configure --enable-shared --disable-install-doc --prefix=/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p327 --with-opt-dir=/Users/adamzerner/.rvm/usr', please read /Users/adamzerner/.rvm/log/ruby-1.9.3-p327/configure.log There has been an error while running configure. Halting the installation.
what happens when yousudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gccand re run the ruby install? – Oliver Atkinson Dec 25 at 10:35 @OliverAtkinson is that all in one line? and should i type "usr" or "adamzerner"? – Adam Zerner Dec 25 at 17:36 @Paul Floravanti I'm not sure. I don't understand what's going on there enough, and I'm following a somewhat rigid rails tutorial and I'm not sure if doing something it says there will negate/interfere with anything I've done or will be doing in the tutorial. – Adam Zerner Dec 25 at 17:40
1 @OliverAtkinson when I copy and paste what you put and then re run the ruby install, the same "long thing" comes up – Adam Zerner 2 days ago
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/52QM0KT6qFsJ.
For more options, visit https://groups.google.com/groups/opt_out.