Re: [Rails] Ppecial characters are not being displayed in emails

2015-05-18 Thread Loganathan Sellapa
Thanks it worked.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>


On Mon, May 18, 2015 at 7:20 PM, John O'Gara  wrote:

> Try
>
> <%= CGI.escapeHTML(dummy_password) %>
>
> When that works stop what you're doing and implement a password link
> reset/setup that will allow you to securely reset your users passwords
>
> John
>
> On Saturday, 16 May 2015 20:11:17 UTC+1, Loganathan Sellappa wrote:
>>
>> HI Walter,
>>
>> I have tried all the possible options such h, raw and nothing works on
>> mailer view.
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>
>> On Sun, May 17, 2015 at 12:30 AM, Walter Lee Davis 
>> wrote:
>>
>>> Okay, then try the <%=h dummy_password %> here instead. I thought that
>>> it was default in all contexts, but perhaps inside a mailer template it is
>>> not?
>>>
>>> Walter
>>>
>>> On May 16, 2015, at 2:45 PM, Loganathan Sellapa 
>>> wrote:
>>>
>>> > Hi Walter,
>>> >
>>> > Just wanted to let you know
>>> >
>>> > ​,​ I​ ​have tried without html_safe already it didnt ​encode the "<"
>>> in to "<".​ Regarding the second point,  ​I need to send the plain
>>> password since this token password which needs to be used only once by the
>>> customer.
>>> >
>>> > Regards,
>>> > Logan
>>> >
>>> > Sent from Mobile device.
>>> >
>>> > On 16 May 2015 23:29, "Walter Lee Davis"  wrote:
>>> >
>>> > On May 16, 2015, at 1:15 PM, Loganathan Sellapa 
>>> wrote:
>>> >
>>> > > Hi All,
>>> > >
>>> > > I have to send user profile password via email, where password will
>>> have special characters as below
>>> > >
>>> > > >>"><<<<>> > >
>>> > > Whenever I send email, some of the special characters are not being
>>> displayed, I have used the html_safe, also set the meta tag as below, but
>>> special characters are always being removed in the mails, can anybody let
>>> me know the way to display special characters in mailer views?
>>> > >
>>> > >   
>>> > >
>>> > > Actual password: >>><<<<>> > > Password in mail: >>><<<`
>>> >
>>> > Two things: first, html_safe means "this character doesn't need to be
>>> escaped" when actually, you mean the opposite. The character is probably
>>> there, but the fact that you have used angle brackets (but not escaped them
>>> to < and >) means that it's being interpreted as the beginning of a tag
>>> and ignored. Try using nothing at all to escape it, which will mean that
>>> Rails does its usual thing and converts any character that has special
>>> meaning in HTML into an entity. It will appear in the browser/email client
>>> as the correct character.
>>> >
>>> > Second thing: why on earth are you sending a password in clear text in
>>> an e-mail, unless that's also inside a PGP block? You may as well write it
>>> on a postcard (or hire a sky-writer).
>>> >
>>> > Walter
>>> >
>>> > >
>>> > > regards,
>>> > > Loganathan
>>> > > Mob: +91 7760780741 | +91 9944414388
>>> > > Skype: loganathan.sellappa
>>> > > ViewMe
>>> > >
>>> > >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> > > To unsubscribe from this group and stop receiving emails from it,
>>> send an email to rubyonrails-ta...@googlegroups.com.
>>> > > To post to this group, send email to rubyonra...@googlegroups.com.
>>> > > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHghC%3DSi%3DXrJkrdqMGsaFL3ttPABgN-%2B4Ej_%2BjkGrWD7A%40mail.gmail.com
>>> .
>>> > > For more options, visit https://groups.google.com/d/optout.
>>> >
>>> > --
>>> > You received this message because you are subscrib

Re: [Rails] Ppecial characters are not being displayed in emails

2015-05-16 Thread Loganathan Sellapa
HI Walter,

I have tried all the possible options such h, raw and nothing works on
mailer view.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>


On Sun, May 17, 2015 at 12:30 AM, Walter Lee Davis 
wrote:

> Okay, then try the <%=h dummy_password %> here instead. I thought that it
> was default in all contexts, but perhaps inside a mailer template it is not?
>
> Walter
>
> On May 16, 2015, at 2:45 PM, Loganathan Sellapa 
> wrote:
>
> > Hi Walter,
> >
> > Just wanted to let you know
> >
> > ​,​ I​ ​have tried without html_safe already it didnt ​encode the "<" in
> to "<".​ Regarding the second point,  ​I need to send the plain password
> since this token password which needs to be used only once by the customer.
> >
> > Regards,
> > Logan
> >
> > Sent from Mobile device.
> >
> > On 16 May 2015 23:29, "Walter Lee Davis"  wrote:
> >
> > On May 16, 2015, at 1:15 PM, Loganathan Sellapa 
> wrote:
> >
> > > Hi All,
> > >
> > > I have to send user profile password via email, where password will
> have special characters as below
> > >
> > > >>"><<<< > >
> > > Whenever I send email, some of the special characters are not being
> displayed, I have used the html_safe, also set the meta tag as below, but
> special characters are always being removed in the mails, can anybody let
> me know the way to display special characters in mailer views?
> > >
> > >   
> > >
> > > Actual password: >>><<<< > > Password in mail: >>><<<`
> >
> > Two things: first, html_safe means "this character doesn't need to be
> escaped" when actually, you mean the opposite. The character is probably
> there, but the fact that you have used angle brackets (but not escaped them
> to < and >) means that it's being interpreted as the beginning of a tag
> and ignored. Try using nothing at all to escape it, which will mean that
> Rails does its usual thing and converts any character that has special
> meaning in HTML into an entity. It will appear in the browser/email client
> as the correct character.
> >
> > Second thing: why on earth are you sending a password in clear text in
> an e-mail, unless that's also inside a PGP block? You may as well write it
> on a postcard (or hire a sky-writer).
> >
> > Walter
> >
> > >
> > > regards,
> > > Loganathan
> > > Mob: +91 7760780741 | +91 9944414388
> > > Skype: loganathan.sellappa
> > > ViewMe
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-talk+unsubscr...@googlegroups.com.
> > > To post to this group, send email to rubyonrails-talk@googlegroups.com
> .
> > > To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHghC%3DSi%3DXrJkrdqMGsaFL3ttPABgN-%2B4Ej_%2BjkGrWD7A%40mail.gmail.com
> .
> > > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-talk+unsubscr...@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/363D3D58-4621-4634-B61C-D0B2329D0272%40wdstudio.com
> .
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-talk+unsubscr...@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEYCfxEAh-71Jnei__E7s_jAQa0ADA%3DVP_MbMYRFB3MmA%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" grou

Re: [Rails] Ppecial characters are not being displayed in emails

2015-05-16 Thread Loganathan Sellapa
Hi Walter,

Just wanted to let you know
​,​
I
​ ​
have tried without html_safe already it didnt
​encode the "<" in to "<"
.
​ Regarding the second point,  ​I need to send the plain password since
this token password which needs to be used only once by the customer.

Regards,
Logan

Sent from Mobile device.
On 16 May 2015 23:29, "Walter Lee Davis"  wrote:

>
> On May 16, 2015, at 1:15 PM, Loganathan Sellapa 
> wrote:
>
> > Hi All,
> >
> > I have to send user profile password via email, where password will have
> special characters as below
> >
> > >>"><<<< >
> > Whenever I send email, some of the special characters are not being
> displayed, I have used the html_safe, also set the meta tag as below, but
> special characters are always being removed in the mails, can anybody let
> me know the way to display special characters in mailer views?
> >
> >   
> >
> > Actual password: >>><<<< > Password in mail: >>><<<`
>
> Two things: first, html_safe means "this character doesn't need to be
> escaped" when actually, you mean the opposite. The character is probably
> there, but the fact that you have used angle brackets (but not escaped them
> to < and >) means that it's being interpreted as the beginning of a tag
> and ignored. Try using nothing at all to escape it, which will mean that
> Rails does its usual thing and converts any character that has special
> meaning in HTML into an entity. It will appear in the browser/email client
> as the correct character.
>
> Second thing: why on earth are you sending a password in clear text in an
> e-mail, unless that's also inside a PGP block? You may as well write it on
> a postcard (or hire a sky-writer).
>
> Walter
>
> >
> > regards,
> > Loganathan
> > Mob: +91 7760780741 | +91 9944414388
> > Skype: loganathan.sellappa
> > ViewMe
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-talk+unsubscr...@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHghC%3DSi%3DXrJkrdqMGsaFL3ttPABgN-%2B4Ej_%2BjkGrWD7A%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/363D3D58-4621-4634-B61C-D0B2329D0272%40wdstudio.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEYCfxEAh-71Jnei__E7s_jAQa0ADA%3DVP_MbMYRFB3MmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Ppecial characters are not being displayed in emails

2015-05-16 Thread Loganathan Sellapa
Hi All,

I have to send user profile password via email, where password will have
special characters as below

*>>">

Actual password:
*>>>>><<<`*

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHghC%3DSi%3DXrJkrdqMGsaFL3ttPABgN-%2B4Ej_%2BjkGrWD7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Real time Chat Application Using ROR 4,ruby 2.1.3,Mongodb

2015-03-11 Thread Loganathan Sellapa
You can try using RabbitMq/Faye. Refer  below links which might help you

https://github.com/loganathan-s/text-chat-using-faye-with-jquery-smiley-plugin
https://github.com/loganathan-s/vide0-chat-using-tokbox
https://railsfornovice.wordpress.com/2013/01/01/video-chatting-in-ruby-on-rails/

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 


On Wed, Mar 11, 2015 at 12:32 AM, Tom Sheffler 
wrote:

> Our platform (SightCall) provides realtime services like text chat,
> video/audio and data messages.  We have a nice Ruby-on-Rails demo of a
> group collaboration tool.  You could use this as a starting point to embed
> these functions into your own web site.
>
> https://github.com/sightcall/Communicator
>
> cheers - T
>
> On Wednesday, December 3, 2014 at 9:50:28 AM UTC-8, Chandra wrote:
>>
>> Hi...I'm new to Ruby on Rails and working on product development. I need
>> to implement chat application for all registered users.It should work like
>> facebook chat or gmail chat.How to develop it using rails 4? Is there any
>> code or plug-in's available for this task?I don't have any idea how to do
>> it.
>>
>> Any help will appreciate
>>
>> Thanks
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/c772a865-cf39-49da-899b-ba7e495186ad%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEbn-5KMoyDqh_UPXTPqYWL6GFQUzunYKbhKC7Fs8%3Dz4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] [RAILS4] How to escape HTML characters in email in rails mailer

2015-03-05 Thread Loganathan Sellapa
Hi All,

I want to escape some of my email contents which are all having special
characters such as below, what is best way to do it, html_safe, h, & raw
didnt escape the HTML characters in mailer views.

"password<>""passwordtest"

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHsyArNH-dAesJN0BJAwdkRC1JzR-XNbwVA5Tq4nuCOFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] How log rotation works in rails

2015-01-01 Thread Loganathan Sellapa
Hi All,

I have implemented the log rotation feature for my application, and I am
seeing unexpected behaviors in the log rotation.

*​config.logger =​  ​::​Logger.new('log/production.log', 3, 50.kilobytes)*

*ASSUMPTIONS:  *

I have assumed that the above code will rotate the log whenever the log
file reaches 50KB, as same as the below manner

1. When I restart the application with log rotation changes, old log file
needs to be moved to backup logs if it is has content more than 50KB
2. production.log reaches 50 KB first time
3. production.log content will be moved to new file called  production.log.0
4. production.log again reaches 50 KB
5. production.log.0 content will be moved completely to production.log.1
6. production.log content moved to  production.log.0 and the production.log
becomes  empty.
7. The contents of the the log files production.log, production.log.0 and
production.log.1 are needs to be in sequentia order like below

   -  production.log has content FROM 11AM to 12PM
   -  production.log.0  has content FROM 10AM to 11AM
   -  production.log.1  has content FROM 9AM to 10AM


*Actual behavior:*

1. When I start the application after log rotation settings, my current log
is cleared completely and no backup is taken
2. Then I process some request in my application
3. production.log reaches 50 KB first time
4. Part of the content of  production.log is moved to production.log.0
5. Part of the content of  production.log.0 is moved to production.log.1
6. The contents of the  log files production.log,  production.log.0 and
production.log.1 are not in sequential order, instead it has the content as
like below


   -  production.log has content FROM 11AM to 12PM
   -  production.log.0  has content FROM 10AM to 1AM
   -  production.log.1  has content FROM 9AM to 10AM, and some contents
   from 11.20AM to 11.25AM

Can anybody let me know
​the way that log rotation works?

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MGgV51M%3DrDEckn6PnvLUXpwJbJT2O9RJDafunn%2BZLHWnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Protecting the Ruby on Rails source code (encrypting and making the code compilable and not to view)

2014-06-28 Thread Loganathan Sellapa
You can use ruby encoder (http://rubyencoder.com)

Regards,
Logan

Sent from mobile device
On 28 Jun 2014 08:39, "Sheyam Selvaraj"  wrote:

> I am trying to implement my application in my client place and the
> application is developed in Ruby on Rails.
>
> Since I am going to deploy on their premise I wish to make the code as
> encrypted can be compiled but not be able to view, use or copy.
>
>
> How can I do that using open-source tools.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/5a1181f6-dccf-4587-ad00-6f00e376262c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MH4H5UNUweiZVQ%2B6htC7J9dRvFQwSPwgGZ_mEPY2cpscQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby On Rails

2014-05-21 Thread Loganathan Sellapa
Whatever may be the OS, you need to configure the mysql credential in
database.yml

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Thu, May 22, 2014 at 9:05 AM, Duong vong veasna
wrote:

> Thanks again Mr. Loganathan
> but i am using window 8.
>
>
>
> On Wednesday, May 21, 2014 8:27:26 PM UTC-7, Loganathan Sellappa wrote:
>
>> You need to place the user name and password in database.yml.
>>
>>   database: dbname
>>   adapter: mysql2
>>   encoding: utf8
>>   pool: 5
>>   username: mysql-username
>>   password:  mysql-password
>>   socket: /var/run/mysqld/mysqld.sock
>>
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe 
>>
>>
>>
>> On Thu, May 22, 2014 at 8:52 AM, Duong vong veasna 
>> wrote:
>>
>>>  Dear Mr. Loganathan
>>>
>>> Could you tell me how to set username and password.
>>> Do i have to put it in Railsinstaller folder? if that how to do?
>>>
>>> thanks for your help.
>>> veasna
>>>
>>> On Wednesday, May 21, 2014 7:51:51 PM UTC-7, Loganathan Sellappa wrote:
>>>
 Did you set the Mysql username & password in database.yml and can you
 able to login via mysql client directly?

 regards,
 Loganathan
 Mob: +91 7760780741 | +91 9944414388
 Skype: loganathan.sellappa
 ViewMe 



 On Thu, May 22, 2014 at 7:34 AM, Duong vong veasna >>> > wrote:

>  Dear Mr. Loganathan, After i copy dll file into ruby/bin then i
> start run "rails server", localhost:3000 not working, it said
> 
> Access denied for user 'root'@'localhost' (using password: NO)
>
>
> please help me, thanks you.
>
> On Wednesday, May 21, 2014 4:44:07 AM UTC-7, Loganathan Sellappa wrote:
>
>> You need to place mysql client ddl file. Refer here
>> http://stackoverflow.com/questions/8162322/set-up-rails
>> -to-find-the-default-location-of-libmysql-dll . I installed ROR on
>> windows sometime backa nd resolved the issue by placing the dll file.
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe 
>>
>>
>>
>> On Wed, May 21, 2014 at 5:02 PM, Karthikeyan A K <77m...@gmail.com>wrote:
>>
>>>  Sorry to say that long long ago tried to install MySQL gem in
>>> Windows 7 and 8 and was not able to do it. If possible shift to linux.
>>>
>>>
>>> On Wednesday, May 21, 2014 10:32:16 AM UTC+5:30, Duong vong veasna
>>> wrote:

 when i use gem install mysql2. I got this error.

 Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/
 extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out

 thanks you,

 On Tuesday, May 20, 2014 7:34:16 PM UTC-7, Germano Teixeira wrote:
>
> Did you try install the mysql gem before run rails new command?
>
> Try run "gem install mysql2" as suggested by the log.
> This will show you what is the real problem.
>
>
> 2014-05-20 22:48 GMT-03:00 Duong vong veasna 
> :
>
>> Dear all Rails Developers, i can not use the command "rails new
>> app -d mysql" when i try to use this i got error.
>>
>> please help me, thanks you.
>>
>>
>>
>> 
>>
>> --
>> You received this message because you are subscribed to the
>> Google Groups "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to rubyonrails-ta...@googlegroups.com.
>> To post to this group, send email to rubyonra...@googlegroups.com
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/69db2927-
>> 9daf-45f8-830e-d95e9b2f04a4%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to rubyonrails-ta...@googlegroups.com.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/9e9c5ed1-
>>> 71d8-4efb-937b-8f6636e49438%40googlegroups.com

Re: [Rails] Ruby On Rails

2014-05-21 Thread Loganathan Sellapa
You need to place the user name and password in database.yml.

  database: dbname
  adapter: mysql2
  encoding: utf8
  pool: 5
  username: mysql-username
  password:  mysql-password
  socket: /var/run/mysqld/mysqld.sock


regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Thu, May 22, 2014 at 8:52 AM, Duong vong veasna
wrote:

> Dear Mr. Loganathan
>
> Could you tell me how to set username and password.
> Do i have to put it in Railsinstaller folder? if that how to do?
>
> thanks for your help.
> veasna
>
> On Wednesday, May 21, 2014 7:51:51 PM UTC-7, Loganathan Sellappa wrote:
>
>> Did you set the Mysql username & password in database.yml and can you
>> able to login via mysql client directly?
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe 
>>
>>
>>
>> On Thu, May 22, 2014 at 7:34 AM, Duong vong veasna 
>> wrote:
>>
>>>  Dear Mr. Loganathan, After i copy dll file into ruby/bin then i start
>>> run "rails server", localhost:3000 not working, it said 
>>> Access denied for user 'root'@'localhost' (using password: NO)
>>>
>>>
>>> please help me, thanks you.
>>>
>>> On Wednesday, May 21, 2014 4:44:07 AM UTC-7, Loganathan Sellappa wrote:
>>>
 You need to place mysql client ddl file. Refer here
 http://stackoverflow.com/questions/8162322/set-up-rails
 -to-find-the-default-location-of-libmysql-dll . I installed ROR on
 windows sometime backa nd resolved the issue by placing the dll file.

 regards,
 Loganathan
 Mob: +91 7760780741 | +91 9944414388
 Skype: loganathan.sellappa
 ViewMe 



 On Wed, May 21, 2014 at 5:02 PM, Karthikeyan A K <77m...@gmail.com>wrote:

>  Sorry to say that long long ago tried to install MySQL gem in
> Windows 7 and 8 and was not able to do it. If possible shift to linux.
>
>
> On Wednesday, May 21, 2014 10:32:16 AM UTC+5:30, Duong vong veasna
> wrote:
>>
>> when i use gem install mysql2. I got this error.
>>
>> Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/
>> extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out
>>
>> thanks you,
>>
>> On Tuesday, May 20, 2014 7:34:16 PM UTC-7, Germano Teixeira wrote:
>>>
>>> Did you try install the mysql gem before run rails new command?
>>>
>>> Try run "gem install mysql2" as suggested by the log.
>>> This will show you what is the real problem.
>>>
>>>
>>> 2014-05-20 22:48 GMT-03:00 Duong vong veasna :
>>>
 Dear all Rails Developers, i can not use the command "rails new app
 -d mysql" when i try to use this i got error.

 please help me, thanks you.



 

 --
 You received this message because you are subscribed to the Google
 Groups "Ruby on Rails: Talk" group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to rubyonrails-ta...@googlegroups.com.
 To post to this group, send email to rubyonra...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/rubyonrails-talk/69db2927-
 9daf-45f8-830e-d95e9b2f04a4%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/rubyonrails-talk/9e9c5ed1-71d8-4efb-937b-8f6636e49438%
> 40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-ta...@googlegroups.com.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/rubyonrails-talk/15d55975-9772-4d82-ae5b-
>>> 2b6e59a7c0b0%40googlegroups.com

Re: [Rails] Ruby On Rails

2014-05-21 Thread Loganathan Sellapa
Did you set the Mysql username & password in database.yml and can you able
to login via mysql client directly?

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Thu, May 22, 2014 at 7:34 AM, Duong vong veasna
wrote:

> Dear Mr. Loganathan, After i copy dll file into ruby/bin then i start run
> "rails server", localhost:3000 not working, it said 
> Access denied for user 'root'@'localhost' (using password: NO)
>
>
> please help me, thanks you.
>
> On Wednesday, May 21, 2014 4:44:07 AM UTC-7, Loganathan Sellappa wrote:
>
>> You need to place mysql client ddl file. Refer here
>> http://stackoverflow.com/questions/8162322/set-up-
>> rails-to-find-the-default-location-of-libmysql-dll . I installed ROR on
>> windows sometime backa nd resolved the issue by placing the dll file.
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe 
>>
>>
>>
>> On Wed, May 21, 2014 at 5:02 PM, Karthikeyan A K <77m...@gmail.com>wrote:
>>
>>>  Sorry to say that long long ago tried to install MySQL gem in Windows
>>> 7 and 8 and was not able to do it. If possible shift to linux.
>>>
>>>
>>> On Wednesday, May 21, 2014 10:32:16 AM UTC+5:30, Duong vong veasna wrote:

 when i use gem install mysql2. I got this error.

 Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/
 extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out

 thanks you,

 On Tuesday, May 20, 2014 7:34:16 PM UTC-7, Germano Teixeira wrote:
>
> Did you try install the mysql gem before run rails new command?
>
> Try run "gem install mysql2" as suggested by the log.
> This will show you what is the real problem.
>
>
> 2014-05-20 22:48 GMT-03:00 Duong vong veasna :
>
>> Dear all Rails Developers, i can not use the command "rails new app
>> -d mysql" when i try to use this i got error.
>>
>> please help me, thanks you.
>>
>>
>>
>> 
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to rubyonrails-ta...@googlegroups.com.
>> To post to this group, send email to rubyonra...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/rubyonrails-talk/69db2927-9daf-45f8-830e-d95e9b2f04a4%
>> 40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-ta...@googlegroups.com.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/rubyonrails-talk/9e9c5ed1-71d8-4efb-937b-
>>> 8f6636e49438%40googlegroups.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/15d55975-9772-4d82-ae5b-2b6e59a7c0b0%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MGxww_Dqo2D36rTU61bHtNLtEr6u7fMTevq4J6cT0iOkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby On Rails

2014-05-21 Thread Loganathan Sellapa
You need to place mysql client ddl file. Refer here
http://stackoverflow.com/questions/8162322/set-up-rails-to-find-the-default-location-of-libmysql-dll.
I installed ROR on windows sometime backa nd resolved the issue by
placing the dll file.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Wed, May 21, 2014 at 5:02 PM, Karthikeyan A K <77mi...@gmail.com> wrote:

> Sorry to say that long long ago tried to install MySQL gem in Windows 7
> and 8 and was not able to do it. If possible shift to linux.
>
>
> On Wednesday, May 21, 2014 10:32:16 AM UTC+5:30, Duong vong veasna wrote:
>>
>> when i use gem install mysql2. I got this error.
>>
>> Result logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/
>> extensions/x86-mingw32/1.9.1/mysql-2.9.1/gem_make.out
>>
>> thanks you,
>>
>> On Tuesday, May 20, 2014 7:34:16 PM UTC-7, Germano Teixeira wrote:
>>>
>>> Did you try install the mysql gem before run rails new command?
>>>
>>> Try run "gem install mysql2" as suggested by the log.
>>> This will show you what is the real problem.
>>>
>>>
>>> 2014-05-20 22:48 GMT-03:00 Duong vong veasna :
>>>
 Dear all Rails Developers, i can not use the command "rails new app -d
 mysql" when i try to use this i got error.

 please help me, thanks you.



 

 --
 You received this message because you are subscribed to the Google
 Groups "Ruby on Rails: Talk" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to rubyonrails-ta...@googlegroups.com.
 To post to this group, send email to rubyonra...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/rubyonrails-talk/69db2927-9daf-45f8-830e-
 d95e9b2f04a4%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/9e9c5ed1-71d8-4efb-937b-8f6636e49438%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEqyTia39a3fR2%3Do%3DhXqcQHyERH6_fXz38ZVwAiNSo6gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: rails 4 link_to post method

2014-03-29 Thread Loganathan Sellapa
Hi,

Can you copy your full routes.rb, I believe you should place the route at
before the route
"resources :payment"

Regards,
Logan

Sent from mobile device
On 29 Mar 2014 22:34, "Me"  wrote:
>
> Route,  post 'payments/:list_item_id', to: 'payments#buy', :as => :buy
>
>
> On Saturday, March 29, 2014 12:02:45 PM UTC-5, Me wrote:
>>
>> I have a rails 4 app that has a link_to with a post method but I keep
getting:
>>
>> No route matches [GET] "/payments/136330"
>>
>> <%= link_to("Buy Now", buy_path(list_item), :method => :post) %>
>>
>> Ideas??
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/21350ab3-a33d-41cb-9061-e103db36b31b%40googlegroups.com
.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEUqTeM9YMdJCJKUL9Sa9MmCVmtT6ka2smS2TtNtooNZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] GET/POST/PUT/DELETE

2014-03-03 Thread Loganathan Sellapa
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Tue, Mar 4, 2014 at 12:21 PM, Selvag Ruby  wrote:

> I trying to understand the purpose of each request of
> GET/POST/PUT/DELETE, generally we are using those in routes.rb of our
> Rails App. I need exact explainition with example of each one in Rails
> app.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/a1bad772defbc2ce2ae99436382e2e00%40ruby-forum.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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEunVTu3c6c3gyHYvSH-YHH%3DR9%2BOL6bN%2B5xCWaw1WTvHA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Which Company is Best on Ruby on Rails Development in India?

2014-01-22 Thread Loganathan Sellapa
http://www.railsfactory.com/

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Wed, Jan 22, 2014 at 3:05 PM, Adam Gilchrist
wrote:

> Hi all, I looking for best company on Ruby on Rails Development in India.
> Have any good companies in India please let me know.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/a3347f1a-cb6c-4f36-9387-498b8f106f2f%40googlegroups.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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MG8_ESTSPgmFk3DWBPTFn4G1dZDsNh4ofAADg64N_4oNw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Free ad space if you donate to RVM

2013-11-07 Thread Loganathan Sellapa
Rofl thread going to start again banglre ppl knw what  I meant.

Emil,
For your safety dont discus further regarding his book cover... we tried it
more than an yr nothin happened so far.

Regards,
Logan

Sent from mobile device
On 7 Nov 2013 22:21, "Emil S"  wrote:

> Just curious. Did you get any comment about the cover being sexist ? It
> may help to get more ads if you change the cover to something else , just
> my opinion .
> On 7 Nov 2013 20:55, "Karthikeyan A.K"  wrote:
>
>> Hello People,
>>
>> I am very much fond of rvm http://rvm.io/ . All the apps I have deployed
>> runs on it. RVM needs funding so that it can be developed further. I want
>> to hasten the process of funding.
>>
>> I have written a ruby programming book named ‘I Love Ruby’ thats totally
>> free, you can get it here http://goo.gl/FW6slH (this book will be
>> released on jan 2014 or earlier)
>>
>> If you donate $2000 to RVM I will grant full page advertisement, half
>> page for $1000 and quarter page ad for $500. If you have donated these
>> amounts you can contact me on mindaslab at gmail dot com so that I can put
>> your ad in it.
>>
>> The advertisement will stay till Jan 31 2014. The ads must be designed by
>> you.
>>
>> Please donate to RVM by going to
>> https://www.bountysource.com/fundraisers/489-rvm-2-0
>>
>>
>> --
>> Nothing is constant
>>
>> Regards
>>
>> A.K.Karthikeyan
>> http://is.gd/kblogs
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/CADGU_bsnY-FQ8C5ywQ3%2BG2LefXy%2Bh0hm2Guh%3DU4JpfwB9G_WkQ%40mail.gmail.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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAJ%3Dox-Ba3-BNn8%3D-L6O5FsOBUttD%3DWbPMUcvchJD7i09Wo4U7w%40mail.gmail.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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5ME0w4OjGoipL4Vqyn%2Bj80b6T4%3DQP3c%3DSZVjn%2BR-jSmB5g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Fwd: How to save file to s3 after processing by ffmpeg using carrierwave

2013-09-23 Thread Loganathan Sellapa
HI Colin,

Th temporary file is created with the reduced bitrate, but I am not able to
find an way to save the  temporary file to s3. Simply I am trying to save
the converted file instead of original file,

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>



On Mon, Sep 23, 2013 at 6:02 PM, Colin Law  wrote:

> On 23 September 2013 13:01, Loganathan Sellapa 
> wrote:
> > HI All,
> >
> > I am trying to convert the bit rate of the Mp3 file before uploading to
> S3,
> > I can able to create version for the mp3 file but the version is not
> saving
> > in s3 instead original file is uploading to s3, any help would be really
> > appreciated
> >
> >
> >   version :bitrate_96k do
> > process :resample => "96"
> >   end
> >
> > def resample(bitrate)
> > tmp_path
> >   = File.join( File.basename(current_path), "tmpfile" )
> > File.rename current_path, tmp_path
> > audio_details  = `ffmpeg -i '#{tmp_path}'
> > 2>&1`.split(",").split("\n").flatten
> > file_bitrate =
> > audio_details.grep(/bitrate/).grep(/bitrate/).join.split("bitrate:
> > ").last.split("\s").first
> > unless file_bitrate == bitrate
> >   `ffmpeg -i #{tmp_path.shellescape}  -acodec libmp3lame -y -ab 96k
> > #{current_path.path}`
> >   File.unlink(current_path)
> >  FileUtils.mv(temp_path, current_path)
> > end
> >   end
>
> So which bit is not working?  Is the temporary file being created ok
> with reduced bitrate?  Is the original file being replaced with the
> new one?
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%2BN2OV913D6Zj9zWO2mV72PohU%2BjYzeOeT%3Df8YAock5g%40mail.gmail.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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEs6Lg3%2BQqV3302FtzCgd2eLk8_ANw02FjxFAcb57CVxA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Fwd: How to save file to s3 after processing by ffmpeg using carrierwave

2013-09-23 Thread Loganathan Sellapa
HI All,

I am trying to convert the bit rate of the Mp3 file before uploading to S3,
I can able to create version for the mp3 file but the version is not saving
in s3 instead original file is uploading to s3, any help would be really
appreciated

  version :bitrate_96k do
process :resample => "96"
  end
def resample(bitrate)
tmp_path
  = File.join( File.basename(current_path), "tmpfile" )
File.rename current_path, tmp_path
audio_details  = `ffmpeg -i '#{tmp_path}'
2>&1`.split(",").split("\n").flatten
file_bitrate =
audio_details.grep(/bitrate/).grep(/bitrate/).join.split("bitrate:
").last.split("\s").first
unless file_bitrate == bitrate
  `ffmpeg -i #{tmp_path.shellescape}  -acodec libmp3lame -y -ab
96k #{current_path.path}`
  File.unlink(current_path)
 FileUtils.mv(temp_path, current_path)
end
  end


regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHerDUiEgdic1NGi61tt%3DAqyrpYTMtHLG6gUaymi7vnAA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] How to capture IP address in ruby 1.8.7

2013-06-18 Thread Loganathan Sellapa
Can you copy your ruby script ?

Regards,
Logan

Sent from mobile device
On 18 Jun 2013 12:35, "sameena Khan"  wrote:

> Thanks Rafi for your reply but can I use request.remore_addr directly like
> ip = request.remote_addr in ruby. it is saying undefined request local
> vairable.
>
>
> On Tue, Jun 18, 2013 at 12:09 PM, Rafi A  wrote:
>
>> How about using *request.remote_addr ?*
>>
>>
>> Regards,
>> Seeni Rafiyullah Khan A,
>> **
>>
>>
>> On Tue, Jun 18, 2013 at 1:56 AM, Khan wrote:
>>
>>> Hi all, I want to capture IP address in ruby 1.8.7 can any one help me
>>> out how to capture IP.
>>>
>>>
>>>
>>> Thanks in advance
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-talk+unsubscr...@googlegroups.com.
>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/7a0ea49a-cede-4bd1-b797-26f0b8c630c9%40googlegroups.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 unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BfXU%2B3ngJR57FXUoHyVWPWPLfiM6zzMv%2BqRSo94Fxs1TU-Z2g%40mail.gmail.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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CABvThQfbk2%2Be1Pi3tQgPDfgMPaWaFAEPd%2BYgs7hgRWp3MYPJPg%40mail.gmail.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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEuNpDEy4AgwwZjzk19ooBvjcaAO8_wF8VL4vsFrSh8JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: How to integrate Flickr with Rails

2013-05-13 Thread Loganathan Sellapa
You can set the configurations anywhere under initializers dir or in the
environtment file.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>



On Mon, May 13, 2013 at 3:39 PM, Ashokkumar Yuvarajan <
ashokku...@shriramits.com> wrote:

> Hi Loganathan,
>
> Where i can give my username and password to access my account ?
>
> I got an error.
>
> FlickRaw::FailedResponse in FlickrPhotoController#show
>
>
> 'flickr.photos.getInfo' - Photo not found
>
> Rails.root: /home/ashok/projects/drag
> Application Trace <http://localhost:4000/show#> | Framework 
> Trace<http://localhost:4000/show#>
>  | Full Trace <http://localhost:4000/show#>
>
> app/controllers/flickr_photo_controller.rb:12:in `show'
>
> Request
>
> *Parameters*:
>
>
> {"utf8"=>"✓",
>  "authenticity_token"=>"AJg0psQdmRmqmG0ypFW3aPnL61H8rbhcfP4tn+zxOtk=",
>  "url"=>"textbehind",
>  "commit"=>"Enter"}
>
> Show session dump <http://localhost:4000/show#>
>
> Show env dump <http://localhost:4000/show#>
> Response
>
> *Headers*:
>
> None
>
>
> Please advice.
>
>
> On Mon, May 13, 2013 at 3:13 PM, Dheeraj Kumar 
> wrote:
>
>> This is probably the best way to integrate Flickr with rails. I've tried
>> this and works great for me!
>>
>> http://bit.ly/125aEob
>>
>> --
>> Dheeraj Kumar
>>
>> On Monday 13 May 2013 at 3:09 PM, Loganathan Sellapa wrote:
>>
>> http://railsfornovice.wordpress.com/2011/06/18/flickr-with-rails3/
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>
>>
>> On Mon, May 13, 2013 at 3:07 PM, Maddy  wrote:
>>
>> Hey guys Good Noon,
>>
>>
>> Do you integrate Flick with Rails do you have any tutorials ?
>>
>>
>>
>> Please Advise.
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/09564e00-cdba-402b-9db4-f002a19f5dfe%40googlegroups.com?hl=en-US
>> .
>> 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 unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
>
> *"Attitude is a little thing that makes a big difference"*
>
>
> *​AshokKumar.Y*
> ROR Developer,
> ashokku...@shriramits.com
> www.shriramits.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: How to integrate Flickr with Rails

2013-05-13 Thread Loganathan Sellapa
http://railsfornovice.wordpress.com/2011/06/18/flickr-with-rails3/

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Mon, May 13, 2013 at 3:07 PM, Maddy  wrote:

> Hey guys Good Noon,
>
>
> Do you integrate Flick with Rails do you have any tutorials ?
>
>
>
> Please Advise.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/09564e00-cdba-402b-9db4-f002a19f5dfe%40googlegroups.com?hl=en-US
> .
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] PG CONNECTION TIME OUT ERROR

2013-04-08 Thread Loganathan Sellapa
Hi Jordon,

Yes, I already contacted my DBA and he also did something by upgrading the
PG server version from 8.x to 9.x and increased the VM's memory but no luck.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>



On Mon, Apr 8, 2013 at 10:19 PM, Jordon Bedwell  wrote:

> On Mon, Apr 8, 2013 at 11:42 AM, Loganathan Sellapa <
> loganathan...@gmail.com> wrote:
>
>> I am frequently getting Pg Connection timeout error in my application. I
>> tried to fix it by upgrading the system memory, also updated the pg gem but
>> the issue is still occurring. Anybody's help will be really appreciated.
>>
>> *(ActiveRecord::StatementInvalid) "PGError: server closed the connection
>> unexpectedly\n\tThis probably means the server terminated
>> abnormally\n\tbefore or while processing the request.\n: BEGIN"*
>>
>
> This is a problem with your PostgreSQL server.  You either have abnormally
> high latency that your PG server is unforgiving of or somebody
> misconfigured it, I would contact whoever manages your databases.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] PG CONNECTION TIME OUT ERROR

2013-04-08 Thread Loganathan Sellapa
Hi All,

I am frequently getting Pg Connection timeout error in my application. I
tried to fix it by upgrading the system memory, also updated the pg gem but
the issue is still occurring. Anybody's help will be really appreciated.

*(ActiveRecord::StatementInvalid) "PGError: server closed the connection
unexpectedly\n\tThis probably means the server terminated
abnormally\n\tbefore or while processing the request.\n: BEGIN"*

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] session variable becomes nil after paypal redirect

2013-03-28 Thread Loganathan Sellapa
Hi Saravanan,

Thanks, Fixed it by disabling the forgery protection for PAYPAL post
request.


regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>



On Thu, Mar 28, 2013 at 7:03 PM, Saravanan P wrote:

> Hi loganathan,
>
> I also faced this issue.
> My devise logout once paypal redirect to my site.
>
>
>   :return => return_url,
>   :custom => "test",
>   :rm => 1,
>
> This may be you are passing wrong values.
> In my case, before i set "rm" value 2. so that my devise get logout. but i
> dont know this is the real cause.
> Once i change rm to 1 my issue solved.
> So please check your passing param value to paypal.
>
> Thank you!
> SaraVanaN.P
>
>
>
>  On Thu, Mar 28, 2013 at 6:54 PM, Loganathan Sellapa <
> loganathan...@gmail.com> wrote:
>
>>  Hi All,
>>
>> I am using PAYAPAL payment type in my application where I am storing the
>> user's product id in a session. But the session variable becomes nil when
>> the page is redirected back to my application from PAYPAL website, any
>> suggestion will be really appreciated.
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Regards by
> Saravanan.P
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] session variable becomes nil after paypal redirect

2013-03-28 Thread Loganathan Sellapa
Hi All,

I am using PAYAPAL payment type in my application where I am storing the
user's product id in a session. But the session variable becomes nil when
the page is redirected back to my application from PAYPAL website, any
suggestion will be really appreciated.
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Help me about connect Facebook in Ruby on Rails

2013-03-14 Thread Loganathan Sellapa
http://railscasts.com/episodes/360-facebook-authentication

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Thu, Mar 14, 2013 at 4:04 PM, haxuan lac  wrote:

> I'm using RoR to create Demo connectting Facebook.i'm reading some
> example but i can't run my Demo.I'm using example:
>
> http://madebymany.com/blog/tutorial-for-restful-authentication-on-rails-with-facebook-connect-in-15-minutes
> This example use Rails 2 and facebooker for Rails 2 and not compatible
> with rails 3
> Who can instruct for me solve this problem? 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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: how to set domain name in heroku

2013-03-10 Thread Loganathan Sellapa
Some heroku addon is available, pls chk it i forgotten the name.

Regards,
Logan

Sent from mobile device.
On Mar 11, 2013 10:40 AM, "ayyappa nallala" 
wrote:
>
> where should i set the naked domain in godaddy
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/6xXX__oZungJ.
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Fwd: Twitter bootstrap rails gem not working in production mode

2013-02-16 Thread Loganathan Sellapa
Hi Sai Kiran,

I am running application in production only after precompiling the assets.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>



On Sun, Feb 17, 2013 at 10:38 AM, saikiran mothe
wrote:

> RAILS_ENV=production bundle exec rake assets:precompile
>
>
> Try pre compile assets before depolying !
>
> Thanks,
> Sai Kiran M
>
>
>
> On Sun, Feb 17, 2013 at 3:32 AM, Loganathan Sellapa <
> loganathan...@gmail.com> wrote:
>
>>
>>  Hi All,
>>
>> I am using 'twitter-bootstrap-rails' in my rails app where I can run the
>> application with bootstrap provided css successfully in development mode
>> but the css is not taking effect in production mode, I hope something I am
>> missing with the asset precompile. Copied below my gem file for y
>>  o
>> ur reference anybody's help is really appreciated.
>>
>> *Gemfile:*
>> #I tried in bot inside and outside of the assets group
>> gem 'twitter-bootstrap-rails'
>>
>> *application.js*
>> //= require jquery
>> //= require jquery_ujs
>> //= require twitter/bootstrap
>> //= require_tree
>> *
>> *
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Fwd: Twitter bootstrap rails gem not working in production mode

2013-02-16 Thread Loganathan Sellapa
Hi All,

I am using 'twitter-bootstrap-rails' in my rails app where I can run the
application with bootstrap provided css successfully in development mode
but the css is not taking effect in production mode, I hope something I am
missing with the asset precompile. Copied below my gem file for y
 o
ur reference anybody's help is really appreciated.

*Gemfile:*
#I tried in bot inside and outside of the assets group
gem 'twitter-bootstrap-rails'

*application.js*
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree
*
*
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Fwd: Need suggestions for admin panel implementation

2013-02-12 Thread Loganathan Sellapa
HI All,

I need to create the admin panel for my existing application where I need
data manipulation from existing models(CRUD operation) , but also
additional features should be support, like file conversions,S# upload and
some more custom features those are not related to models. I know Active
admin is on fire now but I would like to know whether it is good to go with
Active admin or to implement from scratch,  let me know your suggestion for
this.

Also I want to know what is the better approach to build the admin
interface I mean having separate application for admin with shared database
or single application for normal & admin users.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Fwd: HOW TO USE SSL IN SAVON

2013-01-24 Thread Loganathan Sellapa
Nope :( , currently consuming the api without SSL.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Thu, Jan 24, 2013 at 9:02 PM, Almir Mendes  wrote:

> Hi Loganathan,
>
> Do you find a solution? I'm having the same issue, the error only happen
> for a specific domain.
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Order by with first_name and also last_name

2013-01-18 Thread Loganathan Sellapa
Model.all(:order => 'first_name DESC, last_name DESC') and then do the
interpolation


regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 



On Fri, Jan 18, 2013 at 4:43 PM, keerthi priya <
emailtokeerthipr...@gmail.com> wrote:

> Hi all,
>
>  hey I have need some info
> i have this
> def fullname
>  "#{first_name} #{last_name}"
> end
> and i want alphabetical order with first name i can do it but along with
> first_name i want last_name in alphabetical order
> like
> James emi will come first before James fame
> can we do in rails
>
> Cheers,
> Kp
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/B3d8HeeRUusJ.
> 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Fwd: HOW TO USE SSL IN SAVON

2013-01-08 Thread Loganathan Sellapa
HI All,

I want to consume the SOAP apis using SSL in the SAVON gem, but I am facing
the below error while trying to access the soap services.

client = Savon.client(wsdl: "https://xxx?WSDL";)
client.operations

HTTPI GET request to x (curb)
HTTPI::SSLError: Curl::Err::SSLPeerCertificateError

In the Savon site  I found
that options to pass the SSL certificate file, but I didin't understand it,
since why do we need to have the ssl certificate to consume the API? Also
let me know the way to consume the SOAP service with SSL.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] How to allow the user to user their own domain name

2012-12-06 Thread Loganathan Sellapa
Please have a look on to the www.shopify.com, where each user can create a
store with unique domain(subdomain) name like "www.logan.shopify.com".

Currently I creating the same kind of application but I need an extra
feature where user can choose their own domain name while store
registration process like "www.logan.com" instead of
"www.logan.shopify.com<http://www.loganathan.shopify.com>".
The thing is user can point their store with their own domain(can
be registered with any providers like Godaddy,Dreamhost) instead of
subdomain.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>




On Thu, Dec 6, 2012 at 3:31 PM, Colin Law  wrote:

> On 6 December 2012 09:18, Loganathan Sellapa 
> wrote:
> > HI All,
> >
> > I am currently having feature where my users to have a subdomain for
> their
> > account like xxx.myaddress.com,yyy.myaddress.com these will  point to
> the
> > corresponding users .
> >
> > How can I implement the feature where user can enter their own domain
> name
> > instead of sub domain?
>
> Can you give an example of what you mean?
>
> Colin
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] How to allow the user to user their own domain name

2012-12-06 Thread Loganathan Sellapa
HI All,

I am currently having feature where my users to have a subdomain for their
account like xxx.myaddress.com,yyy.myaddress.com these will  point to the
corresponding users .

How can I implement the feature where user can enter their own domain name
instead of sub domain?
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] How to remove the orignal file in carrierwave

2012-10-08 Thread Loganathan Sellapa
HI All,

I am using the carrier wave gem for file uploading, and I am not able to
delete the original file after  uploading. I tried the below code but it
didn't work, any help would be really appreciated.

*
 after :store, :unlink_original

  def unlink_original(file)
File.delete(store_dir+'/'+@original_file) #path of the original file
  end*

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Devise Gem

2012-09-25 Thread Loganathan Sellapa
Refer http://railscasts.com/

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 




On Tue, Sep 25, 2012 at 4:25 PM, keerthi priya <
emailtokeerthipr...@gmail.com> wrote:

> Hi all
>
>i am learning how to implement devise gem but i just want to know
> do i need to write the login code first and then runt this command " rails
> generate devise:install " or run the command first and then go for login
> code. can any one tell me what to do.
>
>
>
> Cheers
> Kp
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/6GH-jKugdygJ.
> 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Assets are not compiling

2012-09-10 Thread Loganathan Sellapa
Fixed it by pasting the below code in production.rb.

*  config.serve_static_assets = true*


regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>




On Fri, Sep 7, 2012 at 2:33 PM, Loganathan Sellapa
wrote:

> Thanks Steve I will do it and let you know.
>
> regards,
> Loganathan
> Mob: +91 7760780741 | +91 9944414388
> Skype: loganathan.sellappa
> ViewMe <http://vizualize.me/loganathan>
>
>
> On Fri, Sep 7, 2012 at 2:31 PM, sjm  wrote:
>
>> Hi,
>>
>> I had this problem too, but resolved it by creating another *
>> application.css* manifest file specifically for IE, I placed it in the
>> same directory as the CSS file for IE.
>>
>> You'd obviously need to compile the assets again.
>>
>> The conditional inclusion should then work for IE.
>>
>> There may be other (better?) ways of doing it, but this worked for me.
>>
>> I hope that this helps.
>>
>> All the best,
>>
>> Steve
>>
>>
>> On Thursday, 6 September 2012 17:07:54 UTC+1, Loganathan Sellappa wrote:
>>>
>>> Hi All,
>>>
>>> I have the css assets as in the below order .
>>>
>>> *Assets structure:*
>>> assets/stylesheets
>>>--->application.css.erb
>>>>ie/application_ie.css.erb
>>> *
>>> In my layout file:*
>>>
>>> * <%= stylesheet_link_tag "application" %>
>>>  
>>> *
>>>
>>> With this configuration I pre compiled the assets with the command
>>> "RAILS_ENV=production bundle exec rake assets:precompile", then started the
>>> server in production mode, at this time below exception was raised.
>>>
>>> *ActionView::Template::Error (ie/application_ie.css isn't precompiled):
>>> 6:
>>> 7:   <%= javascript_include_tag "application" %>
>>> 8:   <%= stylesheet_link_tag "application" %>
>>> 9:   
>>> 10:
>>> 11:   

Re: [Rails] flash[:notice] not working

2012-09-10 Thread Loganathan Sellapa
Paste your code...

Sent from Samsung Mobile.
On Sep 10, 2012 1:58 PM, "Colin Law"  wrote:

> On 10 September 2012 05:48, Manoj M.  wrote:
> > Hi,
> > anybody please help me out,am using rails 3 but using this
> > flash[:notice] doesnot works, i have used this in controllers.
> > any idea ? please help.
>
> Have a look at the Rails Guide on debugging, it will show you
> techniques you can use to debug your code to find why it is not
> working.
>
> Colin
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Authlogic: current user is nil, after adding http basic authentication in production environment

2012-09-09 Thread Loganathan Sellapa
Hi All,

I have implemented http basic authentication in my application, after the
implementation of basic http authentication, current user is always nil in
production mode. Pasted below my code for your reference.

In Application controller:

def authenticate_user
 if (Rails.env.production? && current_user_session.nil?)
   authenticate_or_request_with_http_basic do |username, password|
  username == HTTP_AUTHENTICATION_USERNAME && password ==
HTTP_AUTHENTICATION_PASSWORD
   end
 end
end

Where HTTP credentials are taken from initializer file.
HTTP_AUTHENTICATION_USERNAME=""
HTTP_AUTHENTICATION_PASSWORD="yyy"

Also I tried "allow_http_basic_auth false" in user session model but it
didn't solve the problem.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Multilanguage Approach I18n

2012-09-07 Thread Loganathan Sellapa
Which approach will be better for large application either files/db?

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>


On Fri, Sep 7, 2012 at 7:25 PM, Pio Ryan Lumongsod wrote:

> Language yaml files.
>
> You can add more entry to the en.yml you already have.
>
> You can also store the user's language preference in the cookies and in
> the DB.
>
>  On Fri, Sep 7, 2012 at 9:35 PM, Loganathan Sellapa <
> loganathan...@gmail.com> wrote:
>
>>  Hi All,
>>
>> what is the common approach when dealing with multi language web sites in
>> Ruby on Rails?
>> - Language text files
>> - Database driven approach
>>
>> Also Which will be faster?
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>  --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Pio Ryan S. Lumongsod
> Software Engineer/RoR Developer
>
> ETA '03
> UP Alpha Phi Omega
>
>  --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Multilanguage Approach I18n

2012-09-07 Thread Loganathan Sellapa
Hi All,

what is the common approach when dealing with multi language web sites in
Ruby on Rails?
- Language text files
- Database driven approach

Also Which will be faster?

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Assets are not compiling

2012-09-07 Thread Loganathan Sellapa
Thanks Steve I will do it and let you know.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

On Fri, Sep 7, 2012 at 2:31 PM, sjm  wrote:

> Hi,
>
> I had this problem too, but resolved it by creating another *
> application.css* manifest file specifically for IE, I placed it in the
> same directory as the CSS file for IE.
>
> You'd obviously need to compile the assets again.
>
> The conditional inclusion should then work for IE.
>
> There may be other (better?) ways of doing it, but this worked for me.
>
> I hope that this helps.
>
> All the best,
>
> Steve
>
>
> On Thursday, 6 September 2012 17:07:54 UTC+1, Loganathan Sellappa wrote:
>>
>> Hi All,
>>
>> I have the css assets as in the below order .
>>
>> *Assets structure:*
>> assets/stylesheets
>>--->application.css.erb
>>>ie/application_ie.css.erb
>> *
>> In my layout file:*
>>
>> * <%= stylesheet_link_tag "application" %>
>>  
>> *
>>
>> With this configuration I pre compiled the assets with the command
>> "RAILS_ENV=production bundle exec rake assets:precompile", then started the
>> server in production mode, at this time below exception was raised.
>>
>> *ActionView::Template::Error (ie/application_ie.css isn't precompiled):
>> 6:
>> 7:   <%= javascript_include_tag "application" %>
>> 8:   <%= stylesheet_link_tag "application" %>
>> 9:   
>> 10:
>> 11:   

[Rails] Assets are not compiling

2012-09-06 Thread Loganathan Sellapa
Hi All,

I have the css assets as in the below order .

*Assets structure:*
assets/stylesheets
   --->application.css.erb
   >ie/application_ie.css.erb
*
In my layout file:*

* <%= stylesheet_link_tag "application" %>
 *

With this configuration I pre compiled the assets with the command
"RAILS_ENV=production bundle exec rake assets:precompile", then started the
server in production mode, at this time below exception was raised.

*ActionView::Template::Error (ie/application_ie.css isn't precompiled):
6:
7:   <%= javascript_include_tag "application" %>
8:   <%= stylesheet_link_tag "application" %>
9:   
10:
11:   

Re: [Rails] Re: How to open the pdf from the server via database?

2012-08-29 Thread Loganathan Sellapa
+1

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe 

On Wed, Aug 29, 2012 at 2:57 PM, INDIAN RAILS DEVELOPER <
paritoshparitos...@gmail.com> wrote:

> What all things you want to learn,i can teach you.email me on
> paritoshparitos...@gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/tp2F9_YPqpMJ.
> 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Yes, I know but currently I am looking forward to integrate Red5 server
because I hope without some media servers, the application will not handle
heavy traffic. I will look into HTML 5 once I get this done.

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>

On Sun, Aug 26, 2012 at 3:48 PM, Dheeraj Kumar wrote:

> You could use a HTML5 solution with a Flash fallback, to be more
> future-ready.
>
>
> Dheeraj Kumar
>
> On Sunday 26 August 2012 at 3:42 PM, Loganathan Sellapa wrote:
>
> Yes, but most of the media applications are still depends on Flash only.
> It will take some sort of time to move on with HTML5.
>
> regards,
> Loganathan
> ViewMe <http://vizualize.me/loganathan>
>
> On Sun, Aug 26, 2012 at 3:38 PM, Gintautas Šimkus wrote:
>
> +1 for an interesting topic. But flash is going to die out, so are there
> any HTML5 alternatives for the proposed solution?
>
>
> 2012/8/26 Loganathan Sellapa 
>
> Sure, I am still searching for the tutorial to integrate red5 with ROR,
> yet I didn't find nice one,.
>
> regards,
> Loganathan
> ViewMe <http://vizualize.me/loganathan>
>
>
>
> On Fri, Aug 24, 2012 at 10:48 PM, Timothy Bone wrote:
>
> post it if you find more info. id also like to learn this functionality
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/zkPPP7rqLmAJ.
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>
>
> --
> Pagarbiai,
> Gintautas
>
>  --
> 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Yes, but most of the media applications are still depends on Flash only. It
will take some sort of time to move on with HTML5.

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>

On Sun, Aug 26, 2012 at 3:38 PM, Gintautas Šimkus wrote:

> +1 for an interesting topic. But flash is going to die out, so are there
> any HTML5 alternatives for the proposed solution?
>
>
> 2012/8/26 Loganathan Sellapa 
>
>> Sure, I am still searching for the tutorial to integrate red5 with ROR,
>> yet I didn't find nice one,.
>>
>> regards,
>> Loganathan
>> ViewMe <http://vizualize.me/loganathan>
>>
>>
>>
>> On Fri, Aug 24, 2012 at 10:48 PM, Timothy Bone wrote:
>>
>>> post it if you find more info. id also like to learn this functionality
>>>
>>>  --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/rubyonrails-talk/-/zkPPP7rqLmAJ.
>>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Pagarbiai,
> Gintautas
>
>  --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Sure, I am still searching for the tutorial to integrate red5 with ROR, yet
I didn't find nice one,.

regards,
Loganathan
ViewMe 


On Fri, Aug 24, 2012 at 10:48 PM, Timothy Bone wrote:

> post it if you find more info. id also like to learn this functionality
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/zkPPP7rqLmAJ.
> 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Need help to implement audio recording in rails application

2012-08-23 Thread Loganathan Sellapa
Hi All,

I want to integrate audio recording functionality in rails 3 application,
where user can able record their voice and to share it, I don't know the
way to proceed this.

I googled and found that red5 with flash player is the solution for
this,but I didn't find any tutorials to integrate red5 and flash, can
anybody suggest me any tutorials or some other ways to implement this since
I am pretty noob at this, thanks in advance.
regards,
Loganathan
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] How to define virtual attribute for date_select drop menu using active model

2012-08-14 Thread Loganathan Sellapa
My model* doesn't use Activerecord* ORM, I need to do validation on the
table less model, so I am using the Activemodel library, also I hope the
virtual field are needs to be mentioned as "attr_accessor" and I am sorry
to mention that the model is table less in previous mail, since I thought
people will understand when I say Activemodel.

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>


On Tue, Aug 14, 2012 at 1:30 PM, Colin Law  wrote:

> On 14 August 2012 08:44, Loganathan Sellapa 
> wrote:
> > I thought it would create getter and setter methods for
> > "card_expiration_date"  and the active model library would do the
> rest(such
> > as creating virtual attributes
> >
> card_expiration_date(1i),card_expiration_date(2li),card_expiration_date(3li)
> > for date time attribute(card_expiration_date), let me know if I am wrong.
>
> Please don't top post, it makes it difficult to follow the thread.
> Insert your reply inline in the previous message.  Thanks.
>
> You don't need to specify att_accessor for fields in the database,
> ActiveRecord will supply them automatically.  By providing them
> yourself you have disabled the automatic ones.
>
> I guess you are a beginner with Rails so I suggest that you work
> through some tutorials to understand the basics.  railstutorial.org is
> good and is free to use online.
>
> Colin
>
> >
> > regards,
> > Loganathan
> > ViewMe
> >
> >
> >
> >
> >
> > On Tue, Aug 14, 2012 at 1:06 PM, Colin Law 
> wrote:
> >>
> >> On 14 August 2012 07:50, Loganathan Sellapa 
> >> wrote:
> >> > Hi All,
> >> >
> >> > I am using active model for payment process in my application , i am
> not
> >> > able to add field for date field, since it throws error as below
> >> > undefined
> >> > method `card_expiration_date(3i)='.
> >> >
> >> > In model:
> >> >   include ActiveModel::Validations
> >> >   include ActiveModel::Conversion
> >> >   extend ActiveModel::Naming
> >> >
> >> >   attr_accessor: card_expiration_date
> >>
> >> What is the purpose of the line above?  Check the docs for
> >> attr_accessor to see what it does.
> >>
> >> Colin
> >>
> >> >
> >> > In view:
> >> >
> >> > <%=f.date_select :card_expiration_date, :add_month_numbers =>
> >> > false,:discard_day => true, :start_year => (Date.today.year-10),
> >> > :end_year
> >> > => (Date.today.year+10),:order=>[ :month,:year] %>
> >> >
> >>
> >> --
> >> 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] How to define virtual attribute for date_select drop menu using active model

2012-08-14 Thread Loganathan Sellapa
I thought it would create getter and setter methods for
"card_expiration_date"  and the active model library would do the rest(such
as creating virtual attributes card_expiration_date(1i),
card_expiration_date(2li),card_expiration_date(3li) for date time attribute(
card_expiration_date), let me know if I am wrong.

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>





On Tue, Aug 14, 2012 at 1:06 PM, Colin Law  wrote:

> On 14 August 2012 07:50, Loganathan Sellapa 
> wrote:
> > Hi All,
> >
> > I am using active model for payment process in my application , i am not
> > able to add field for date field, since it throws error as below
> undefined
> > method `card_expiration_date(3i)='.
> >
> > In model:
> >   include ActiveModel::Validations
> >   include ActiveModel::Conversion
> >   extend ActiveModel::Naming
> >
> >   attr_accessor: card_expiration_date
>
> What is the purpose of the line above?  Check the docs for
> attr_accessor to see what it does.
>
> Colin
>
> >
> > In view:
> >
> > <%=f.date_select :card_expiration_date, :add_month_numbers =>
> > false,:discard_day => true, :start_year => (Date.today.year-10),
> :end_year
> > => (Date.today.year+10),:order=>[ :month,:year] %>
> >
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] How to define virtual attribute for date_select drop menu using active model

2012-08-13 Thread Loganathan Sellapa
Hi All,

I am using active model for payment process in my application , i am not
able to add field for date field, since it throws error as below *undefined
method `card_expiration_date(3i)='*.

*In model:
 * include ActiveModel::Validations
  include ActiveModel::Conversion
  extend ActiveModel::Naming*
*

  attr_accessor: card_expiration_date
*In view:*

<%=f.date_select :card_expiration_date, :add_month_numbers =>
false,:discard_day => true, :start_year => (Date.today.year-10), :end_year
=> (Date.today.year+10),:order=>[ :month,:year] %>


Any help would be appreciated.
regards,
Loganathan
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Difference between save and create ?

2012-07-27 Thread Loganathan Sellapa
Refer this link '
http://www.rorexperts.com/differences-between-create-and-save-methods-in-active-record-t1348.html
'

regards,
Loganathan
ViewMe 


On Fri, Jul 27, 2012 at 3:20 PM, manoj c.  wrote:

> difference between save and create

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Plugin help Tabbed view in Rails 3

2012-07-03 Thread Loganathan Sellapa
Try this 'http://rubygems.org/gems/tabs_on_rails'

regards,
Loganathan
ViewMe 


On Tue, Jul 3, 2012 at 1:14 PM, Shalini Sah wrote:

> Hi,
>
> I am trying to create a tabbed view for my RoR application where I am
> trying to project the same partial by passing some local variables to it,
> but I have not been successful so far.Please point to some nice rails
> plugins for tabbed panels in rails 3.0 as well as some video or written
> tutorials.
>
> Thanks & Regards,
> Shalini Sah
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/TxySktwf3QEJ.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en-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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.



[Rails] Re: How to send audio files using net/http

2012-06-21 Thread Loganathan Sellapa
HI All,

Got it working using the below script.

*require 'net/http'
require "uri"
url = "http://#{domain}:#{port}";
uri = URI.parse(url);
data = File.read('fil_path')  #File.read("/usr/test.amr")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Post.new(uri.request_uri)
request.body = data
request.content_type = 'audio/amr'
res = http.request(request)
puts res.body*

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>


On Thu, Jun 21, 2012 at 11:47 AM, Loganathan Sellapa <
loganathan...@gmail.com> wrote:

> HI All,
>
> I want to send audio file via http request as an api cal, not via form
> using net/http. I dont want to use any other gems. Please let me know how
> can be achieved.
>
> regards,
> Loganathan
> ViewMe <http://vizualize.me/loganathan>
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] How to send audio files using net/http

2012-06-20 Thread Loganathan Sellapa
HI All,

I want to send audio file via http request as an api cal, not via form
using net/http. I dont want to use any other gems. Please let me know how
can be achieved.

regards,
Loganathan
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] What is the difference between Soap API and REST API?

2012-06-14 Thread Loganathan Sellapa
 @Peter Hickman +1 :D

regards,
Loganathan
ViewMe 





On Thu, Jun 14, 2012 at 4:05 PM, Peter Hickman <
peterhickman...@googlemail.com> wrote:

> Given that this is a generic question and has nothing to do with Ruby
> or Rails perhaps you should
>
> TRY GOOGLING FOR IT!
>
> Guess what the first result is :)
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Need to Create Soap Web Service in Rails 3.2

2012-06-13 Thread Loganathan Sellapa
Thanks Javier, Looks like the Savon is only to consume SOAP service, but I
want to *create SOAP Service* for other application to use (i.e Need to
create SOAP Server for Clients)

regards,
Loganathan
ViewMe <http://vizualize.me/loganathan>





On Wed, Jun 13, 2012 at 11:13 PM, Javier Quarite wrote:

>
>
> On Wed, Jun 13, 2012 at 12:36 PM, Loganathan Sellapa <
> loganathan...@gmail.com> wrote:
>
>> Hi  All,
>>
>> I want to create an application which needs to provide SOAP services to
>> multiple applications, I have googled and found that no plugins/gem were
>> available to create soap web services except the wash_out gem for Rails 3.
>> Also I am not sure whether it is good to go with the wash_out gem, and I
>> don't want waste my time to do more R&D on this.
>> If Rails is not supporting Soap web Services, please give me some
>> suggestions to make it happen, because there is no way for me to go for
>> other frameworks, since my application was already implemented on Rails 3.2
>> with more functionality.
>>
>> regards,
>> Loganathan
>> ViewMe <http://vizualize.me/loganathan>
>
>
> Once I've heard of this
>
> http://savonrb.com/
>
> there's also a railscast about it
>
> HTH
>
>
> Javier Q.
>
>  --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Need to Create Soap Web Service in Rails 3.2

2012-06-13 Thread Loganathan Sellapa
Hi  All,

I want to create an application which needs to provide SOAP services to
multiple applications, I have googled and found that no plugins/gem were
available to create soap web services except the wash_out gem for Rails 3.
Also I am not sure whether it is good to go with the wash_out gem, and I
don't want waste my time to do more R&D on this.
If Rails is not supporting Soap web Services, please give me some
suggestions to make it happen, because there is no way for me to go for
other frameworks, since my application was already implemented on Rails 3.2
with more functionality.

regards,
Loganathan
ViewMe 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: How to upload a video in ruby on rails

2012-06-04 Thread Loganathan Sellapa
Checkout any of these below for video upload.

http://openrails.blogspot.in/2011/03/upload-videos-in-rails-using-floplayer.html

https://rubygems.org/gems/paperclip-ffmpeg

http://railscasts.com/episodes/134-paperclip

regards,
Loganathan
ViewMe 





On Mon, Jun 4, 2012 at 3:24 PM, saritha chakilala wrote:

> i want to upload a video to save in my database (mysql) and play it
> later time when i was click on the play button.
>
> can any one post the code using panda how to upload a video clip.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] How to upload a video in ruby on rails

2012-06-04 Thread Loganathan Sellapa
Hi Saritha,

Checkout this http://www.pandastream.com/docs/.

regards,
Loganathan
ViewMe 





On Mon, Jun 4, 2012 at 2:01 PM, saritha chakilala wrote:

> Can any one halp? how to upload a video in ruby on rails (ruby 1.8.7 and
> rails-2.3.8)
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Rails developer required.

2012-05-22 Thread Loganathan Sellapa
+1 :D

regards,
Loganathan
ViewMe 

On Tue, May 22, 2012 at 12:52 PM, Michael Pavling  wrote:

> On 21 May 2012 22:57, Suraj B.  wrote:
> > If you are experienced rails developer please let me know.
>
> worst
>
> job
>
> ad
>
> ever
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: Is there a way to redirect from one controller action to another without a server trip?

2012-03-08 Thread Loganathan Sellapa
On Thu, Mar 8, 2012 at 5:25 PM, Pieter Hugo  wrote:

> something like
>
> render :controller => othercontroller, :action => :otheraction, :params
> => params
>
*   Nope, I hope you cant call  another controller action like this.*

>
> ?
>
> (preserving the params would be a sweet bonus :)
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Is there a way to redirect from one controller action to another without a server trip?

2012-03-08 Thread Loganathan Sellapa
Create object for that controller then call.

 class A
  def a1
   * invoke=B.new**
invoke.action(args)*
  end
 end

 class B
  def action(args)
something
  end
 end

regards,
Loganathan




On Thu, Mar 8, 2012 at 5:17 PM, Pieter Hugo  wrote:

> Hi
>
> I want one controller action to invoke another action in another
> controller, but I don't want the overhead of a redirect_to response
> which then generates another request to the correct action and
> controller. Any suggestions?
>
> Pieter
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] how to add mysql in rails 3.2.1

2012-02-05 Thread Loganathan Sellapa
gem 'mysql2', use -d option to specify the database like 'rails new appname
*-d mysql*'

regards,
Loganathan




On Fri, Feb 3, 2012 at 9:33 PM, honey ruby wrote:

> hey everyone i have installed rails 3.2.1 and want to create app but i
> use mysql wht the gems need to add in gem file
>
>
>
> thanks in advance
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] can i have two rails versions

2012-02-05 Thread Loganathan Sellapa
You can create the rails 3 application by 'rails new appname'
And for rails 2 application '*rails_2.3.8_appname*'

regards,
Loganathan

On Fri, Feb 3, 2012 at 9:23 PM, hanish jadala wrote:

> hi  i have installed rails3.2.1 and rvm but this had happen
> *** LOCAL GEMS ***
>
> actionmailer (3.2.1, 2.3.8)
> actionpack (3.2.1, 2.3.8)
> activemodel (3.2.1)
> activerecord (3.2.1, 2.3.14, 2.3.8)
> activeresource (3.2.1, 2.3.8)
> activesupport (3.2.1, 2.3.14, 2.3.8)
> addressable (2.2.6)
> arel (3.0.0)
> builder (3.0.0)
> bundler (1.0.21)
> choice (0.1.4)
> cocaine (0.2.1)
> columnize (0.3.6)
> declarative_authorization (0.5.4)
> erubis (2.7.0)
> faraday (0.7.5)
> google-spreadsheet-ruby (0.1.6)
> hike (1.2.1)
> i18n (0.6.0)
> journey (1.0.1)
> json (1.6.5)
> linecache (0.46)
> log4r (1.1.10)
> mail (2.4.1)
> memcache-client (1.8.5)
> mime-types (1.17.2)
> multi_json (1.0.4)
> multipart-post (1.1.4)
> nokogiri (1.5.0)
> oauth (0.4.5)
> oauth2 (0.5.2)
> polyglot (0.3.3)
> prawn (0.8.4)
> prawn-core (0.8.4)
> prawn-format (0.2.3)
> prawn-layout (0.8.4)
> prawn-security (0.8.4)
> rack (1.4.1, 1.1.3)
> rack-cache (1.1)
> rack-ssl (1.3.2)
> rack-test (0.6.1)
> rails (2.3.8)
> railties (3.2.1)
> rake (0.9.2.2)
> rbx-require-relative (0.0.5)
> rdoc (3.12)
> roo (1.10.1)
> ruby-debug (0.10.4)
> ruby-debug-ide (0.4.6)
> ruby-ole (1.2.11.2)
> rubyzip (0.9.5)
> searchlogic (2.5.8)
> spreadsheet (0.6.5.9)
> sprockets (2.1.2)
> text-format (1.0.0)
> text-hyphen (1.0.2)
> thor (0.14.6)
> tilt (1.3.3)
> todonotes (0.1.0)
> treetop (1.4.10)
> tzinfo (0.3.31)
> latest and old both are there and how can i use my previous rails 2.3.8
>
>
> On Fri, Feb 3, 2012 at 7:24 PM, Prince Joseph  wrote:
>
>> You are basically installing a new ruby version with a whole new set of
>> gems while using rvm and you can switch between the ruby versions using
>> rvm.  So, in the new ruby inside rvm, there will be no gems. You will have
>> to install all the gems including rails. So, the previous version of rails
>> will not be there in the new ruby version from rvm. It will be inside the
>> ruby you have installed before without using rvm.
>>
>> If you want to use the ruby installed already before installing rvm, you
>> can use `rvm use system`.
>>
>> Please see https://rvm.beginrescueend.com/rvm/basics/ to the bottom.
>>
>> On Fri, Feb 3, 2012 at 7:03 PM, hanish jadala > > wrote:
>>
>>> ok but will my previous rails will be there.
>>>
>>> On Fri, Feb 3, 2012 at 6:55 PM, Prince Joseph  wrote:
>>>
 Use rvm  and enjoy :)


 On Fri, Feb 3, 2012 at 6:51 PM, honey ruby 
 wrote:

> hey everyone i am using ubuntu 11.04 and i wanna install rails 3.0.0
> now i have 2.3.8 rails and 1.8.7 ruby. how can i have both of them
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


 --
 Thanks,
 Prince

  --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/rubyonrails-talk?hl=en.

>>>
>>>  --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>
>>
>>
>> --
>> Thanks,
>> Prince
>>
>>  --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>  --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" grou

[Rails] How to add multiple user create on single form using ActiveAdmin

2012-01-26 Thread Loganathan Sellapa
HI All,

I am currently creating an Admin utility for courier management service,
where I need to include a form to *submit two users(same model) on same form
*, I don't know to implement exactly but duplicated the user form twice
which is displaying the form twice on the browser but unable to save the
both the users, listed below my Admin customer register file and attached
the screen shot for your reference .

Also  want to know, how to add *additional business logics to admin*, for
example adding  print functionality for the single user on 'view' page.

ActiveAdmin.register Customer do
form do |f|
#User one
 f.inputs "Sender Details" do
  f.input :name
   f.input :email
   f.input :street
   f.input :city
   f.input :state
   f.input :pin
   f.input :customer_type,:as => :select, :collection => [["Package
Sender", "Package Sender"], ["Package Receiver","Package Receiver"]]
end

#User two
   f.inputs "Receiver Details" do
  f.input :name
   f.input :email
   f.input :street
   f.input :city
   f.input :state
   f.input :pin
   f.input :customer_type,:as => :select, :collection => [["Package
Sender", "Package Sender"], ["Package Receiver","Package Receiver"]]
end

f.inputs do
  f.has_many :packages do |p|
   p.input :weight
   p.input :amount
   p.input :received_date
   p.input :amount
   end
end
f.buttons
  end
end

regards,
Loganathan

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

<>

Re: [Rails] Problem while creating new resource on ActiveAdmin

2012-01-26 Thread Loganathan Sellapa
/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
`invoke_with_call_chain'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:176:in
`block in invoke_prerequisites'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:174:in
`each'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:174:in
`invoke_prerequisites'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:157:in
`block in invoke_with_call_chain'
/home/logs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
`invoke_with_call_chain'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
`invoke'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
`invoke_task'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`block (2 levels) in top_level'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`each'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
`block in top_level'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
`standard_exception_handling'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
`top_level'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
`block in run'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
`standard_exception_handling'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
`run'
/home/logs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `'
/home/logs/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/home/logs/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `'
Tasks: TOP => db:migrate => environment


regards,
Loganathan




On Thu, Jan 26, 2012 at 3:18 PM, Colin Law  wrote:

> On 26 January 2012 08:10, Loganathan Sellapa 
> wrote:
> > HI All,
> >
> > I have installed the Active Admin successfully, but facing the following
> > error while restarting the server after generating an resource.
> >
> >  rails generate active_admin:resource item
>
> Did you remember to run migrate on the database?
>
> Colin
>
> >
> > /home/logs/Desktop/training/RAILS/courier/app/admin/items.rb:1:in ` > (required)>': uninitialized constant Item (NameError)
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] How to encode (.) Dot in url Rails

2012-01-22 Thread Loganathan Sellapa
I solved the problem by adding *ActionController::Routing::SEPARATORS =
%w( / ; , ? ) *in my* routes.rb* file,  but an warning message is
displaying as below

config/routes.rb:12: warning: already initialized constant SEPARATORS

Want to know whether this warning will be an issue on future?

regards,
Loganathan

On Sat, Jan 21, 2012 at 1:45 AM, Mukesh Singh wrote:

>  constraints (:version  => /[0-9]{1}(?:.[0-9]{1,2})/) do
>match 'ws/:api_version => 'api#create'
>  end
>
> This route will match to 'ws/1.23" and you will have params[:version] ==
> "1.23"
>
> On Sat, Jan 21, 2012 at 1:35 AM, Rob Biedenharn <
> r...@agileconsultingllc.com> wrote:
>
>>
>> On Jan 20, 2012, at 7:38 AM, Loganathan Sellapa wrote:
>>
>> Hi All,
>>
>> I am having routes like below to delete/list an user.
>>
>> map.connect
>> 'developer/:user_name/delete',:controller=>"developers",:action=>"delete",:method=>:delete
>>
>>
>> You probably need to keep the '.' from being treated as a separator (like
>> for a format):
>>
>> :requirements => { :user_name => /.*/ }
>>
>> -Rob
>>
>> map.connect
>> 'developer/:user_name/list',:controller=>"developers",:action=>"list",:method=>:get
>>
>> While listing the user by encoding the Dot with %2E, i can see the
>> success response 
>> http://localhost:3000/developer/testuser%2Ehu/list<http://localhost:3000/developer/testuser.hu/list>
>>
>> But While trying to delete the user who containing the Dot(.), throws 404
>> error.
>>
>> http://localhost:3000/developer/testuser%2Ehu/delete<http://localhost:3000/developer/testuser.hu/delete>,
>>  thanks in advance
>> regards,
>> Loganathan
>>
>>
>>  --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>
>
> --
> Regards
> Mukesh Paras Singh
>
>  --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: How to encode (.) Dot in url Rails

2012-01-20 Thread Loganathan Sellapa
Hi Colin

That was an api call, so we cannot change the url.

regards,
Loganathan




On Fri, Jan 20, 2012 at 6:44 PM, Colin Law  wrote:

> On 20 January 2012 13:03, Tim Shaffer  wrote:
> > You have the  developer/:user_name/delete route set to use "delete" as
> the
> > method, rather than "get"
> >
> > Since browsers usually don't support sending requests other than post or
> > get, you'll need to pass a "_method=delete" parameter to that route
> >
> > Check out the rails guide on routing for more information:
> > http://guides.rubyonrails.org/routing.html#resources-on-the-web
>
> Also do not pass the user name but the id.
>
> Colin
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Re: How to encode (.) Dot in url Rails

2012-01-20 Thread Loganathan Sellapa
Hi Tim,

I already tried with the get method too. but no luck.

regards,
Loganathan

On Fri, Jan 20, 2012 at 6:33 PM, Tim Shaffer  wrote:

> You have the  developer/:user_name/delete route set to use "delete" as
> the method, rather than "get"
>
> Since browsers usually don't support sending requests other than post or
> get, you'll need to pass a "_method=delete" parameter to that route
>
> Check out the rails guide on routing for more information:
> http://guides.rubyonrails.org/routing.html#resources-on-the-web
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/jAtXSzkQk9sJ.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] How to encode (.) Dot in url Rails

2012-01-20 Thread Loganathan Sellapa
Hi All,

I am having routes like below to delete/list an user.

map.connect
'developer/:user_name/delete',:controller=>"developers",:action=>"delete",:method=>:delete


map.connect
'developer/:user_name/list',:controller=>"developers",:action=>"list",:method=>:get

While listing the user by encoding the Dot with %2E, i can see the success
response 
http://localhost:3000/developer/testuser%2Ehu/list

But While trying to delete the user who containing the Dot(.), throws 404
error.

http://localhost:3000/developer/testuser%2Ehu/delete,
thanks in advance
regards,
Loganathan

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.